From 282fb7a319823549fc92469ebe059ebb898e4760 Mon Sep 17 00:00:00 2001 From: Yulife Date: Wed, 23 Sep 2015 17:41:12 +0200 Subject: [PATCH] Update Pulverizer.java --- .../modtweaker2/mods/thermalexpansion/handlers/Pulverizer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Pulverizer.java b/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Pulverizer.java index dc997ad..dfde51c 100644 --- a/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Pulverizer.java +++ b/src/main/java/modtweaker2/mods/thermalexpansion/handlers/Pulverizer.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.PulverizerManager; import cofh.thermalexpansion.util.crafting.PulverizerManager.RecipePulverizer; @@ -34,7 +35,7 @@ public class Pulverizer { } @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;