Update Pulverizer.java
This commit is contained in:
parent
3ea99014f6
commit
282fb7a319
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue