add alts, refactor recipes

master
agp8x 2024-03-08 21:33:11 +01:00
parent 1d5c39b9e5
commit 7e5c0e8e35
2 changed files with 335 additions and 372 deletions

File diff suppressed because it is too large Load Diff

View File

@ -82,7 +82,7 @@ public class RecipeBuilder {
if (outputs.isEmpty()){ if (outputs.isEmpty()){
throw new IllegalStateException("no outputs set"); throw new IllegalStateException("no outputs set");
} }
Recipe recipe = new Recipe(duration, inputs,outputs, byProducts,building,name,isHandCraftable ); Recipe recipe = new Recipe(duration, inputs,outputs, byProducts, building, name, isHandCraftable);
outputs.keySet().forEach(item -> item.add(recipe)); outputs.keySet().forEach(item -> item.add(recipe));
return recipe; return recipe;
} }