Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some IE Recipe Builders not using IIngredient properly #196

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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