diff --git a/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Sawmill.java b/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Sawmill.java index e98455e..88d8063 100644 --- a/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Sawmill.java +++ b/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Sawmill.java @@ -18,6 +18,7 @@ import modtweaker2.utils.BaseListAddition; import modtweaker2.utils.BaseListRemoval; import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenMethod; +import stanhebben.zenscript.annotations.Optional; import cofh.thermalexpansion.util.crafting.SawmillManager; import cofh.thermalexpansion.util.crafting.SawmillManager.RecipeSawmill; @@ -34,7 +35,7 @@ public class Sawmill { } @ZenMethod - public static void addRecipe(int energy, IItemStack input, IItemStack output, IItemStack secondary, int secondaryChance) { + public static void addRecipe(int energy, IItemStack input, IItemStack output, @Optional IItemStack secondary, @Optional int secondaryChance) { if(input == null || output == null) { LogHelper.logError(String.format("Required parameters missing for %s Recipe.", name)); return;