Update Pulverizer.java

This commit is contained in:
Yulife 2015-09-23 17:41:12 +02:00
parent 3ea99014f6
commit 282fb7a319

View file

@ -18,6 +18,7 @@ import modtweaker2.utils.BaseListAddition;
import modtweaker2.utils.BaseListRemoval; import modtweaker2.utils.BaseListRemoval;
import stanhebben.zenscript.annotations.ZenClass; import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod; import stanhebben.zenscript.annotations.ZenMethod;
import stanhebben.zenscript.annotations.Optional;
import cofh.thermalexpansion.util.crafting.PulverizerManager; import cofh.thermalexpansion.util.crafting.PulverizerManager;
import cofh.thermalexpansion.util.crafting.PulverizerManager.RecipePulverizer; import cofh.thermalexpansion.util.crafting.PulverizerManager.RecipePulverizer;
@ -34,7 +35,7 @@ public class Pulverizer {
} }
@ZenMethod @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) { if(input == null || output == null) {
LogHelper.logError(String.format("Required parameters missing for %s Recipe.", name)); LogHelper.logError(String.format("Required parameters missing for %s Recipe.", name));
return; return;