9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-24 17:39:30 +00:00

Update RecipeBasedCraftRemainder.java

This commit is contained in:
XiaoMoMi
2025-10-17 05:48:39 +08:00
parent 80d797cc5c
commit 03cf774fc4

View File

@@ -33,7 +33,7 @@ public class RecipeBasedCraftRemainder implements CraftRemainder {
Map<Key, CraftRemainder> remainders = new HashMap<>();
List<GroupedRemainder> remainderList = ResourceConfigUtils.parseConfigAsList(ResourceConfigUtils.requireNonNullOrThrow(args.get("terms"), "warning.config.item.settings.craft_remainder.recipe_based.missing_terms"), map -> {
List<Key> recipes = MiscUtils.getAsStringList(map.get("recipes")).stream().map(Key::of).toList();
CraftRemainder remainder = CraftRemainders.fromObject(ResourceConfigUtils.get(args, "craft-remainder", "craft-remaining-item"));
CraftRemainder remainder = CraftRemainders.fromObject(ResourceConfigUtils.get(map, "craft-remainder", "craft-remaining-item"));
return new GroupedRemainder(recipes, remainder);
});
for (GroupedRemainder remainder : remainderList) {