From dfe8d29006c8995f07eb3a2d142b6b12c4d216e0 Mon Sep 17 00:00:00 2001 From: Waiting Idly <25394029+WaitingIdly@users.noreply.github.com> Date: Thu, 11 Jul 2024 23:30:21 -0700 Subject: [PATCH] resolve #195 (#196) --- .../compat/mods/immersiveengineering/ArcFurnace.java | 2 +- .../groovyscript/compat/mods/immersiveengineering/Crusher.java | 2 +- .../compat/mods/immersiveengineering/Fermenter.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/ArcFurnace.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/ArcFurnace.java index 44cf21d90..b2506e697 100644 --- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/ArcFurnace.java +++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/ArcFurnace.java @@ -221,7 +221,7 @@ public void validate(GroovyLog.Msg msg) { public @Nullable ArcFurnaceRecipe register() { if (!validate()) return null; Object[] additives = ArrayUtils.mapToArray(input, ImmersiveEngineering::toIngredientStack); - ArcFurnaceRecipe recipe = new ArcFurnaceRecipe(output.get(0), mainInput, slag, time, energyPerTick, additives); + ArcFurnaceRecipe recipe = new ArcFurnaceRecipe(output.get(0), ImmersiveEngineering.toIngredientStack(mainInput), slag, time, energyPerTick, additives); if (specialRecipeType != null) recipe.setSpecialRecipeType(specialRecipeType); ModSupport.IMMERSIVE_ENGINEERING.get().arcFurnace.add(recipe); return recipe; diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Crusher.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Crusher.java index 089392fe3..a3875d24f 100644 --- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Crusher.java +++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Crusher.java @@ -151,7 +151,7 @@ public void validate(GroovyLog.Msg msg) { @RecipeBuilderRegistrationMethod public @Nullable CrusherRecipe register() { if (!validate()) return null; - CrusherRecipe recipe = new CrusherRecipe(output.get(0), input.get(0), energy); + CrusherRecipe recipe = new CrusherRecipe(output.get(0), ImmersiveEngineering.toIngredientStack(input.get(0)), energy); if (!secondaryOutputItems.isEmpty()) { recipe.secondaryOutput = secondaryOutputItems.toArray(new ItemStack[0]); recipe.secondaryChance = secondaryOutputChances.elements(); diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Fermenter.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Fermenter.java index 7c69dd55f..60305b379 100644 --- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Fermenter.java +++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/immersiveengineering/Fermenter.java @@ -133,7 +133,7 @@ public void validate(GroovyLog.Msg msg) { @RecipeBuilderRegistrationMethod public @Nullable FermenterRecipe register() { if (!validate()) return null; - FermenterRecipe recipe = new FermenterRecipe(fluidOutput.get(0), output.getOrEmpty(0), input.get(0), energy); + FermenterRecipe recipe = new FermenterRecipe(fluidOutput.get(0), output.getOrEmpty(0), ImmersiveEngineering.toIngredientStack(input.get(0)), energy); ModSupport.IMMERSIVE_ENGINEERING.get().fermenter.add(recipe); return recipe; }