Skip to content

Commit

Permalink
resolve #195 (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly authored Jul 12, 2024
1 parent 8b699f1 commit dfe8d29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dfe8d29

Please sign in to comment.