Fix #1602
This commit is contained in:
parent
a0ee459d13
commit
20b1874e2c
1 changed files with 2 additions and 1 deletions
|
@ -41,12 +41,13 @@ public class CTGrinder extends CTGeneric {
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
@ZenDocumentation("IItemStack output, IIngredient input1, int ticktime, int euTick")
|
@ZenDocumentation("IItemStack output, IIngredient input1, int ticktime, int euTick")
|
||||||
public static void addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) {
|
public static RecipeSettings addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) {
|
||||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||||
|
|
||||||
GrinderRecipe r = new GrinderRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick);
|
GrinderRecipe r = new GrinderRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick);
|
||||||
|
|
||||||
addRecipe(r);
|
addRecipe(r);
|
||||||
|
return new RecipeSettings(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
|
|
Loading…
Add table
Reference in a new issue