From 037af5364ff2294683984bc1bd0fe4e93959aaf2 Mon Sep 17 00:00:00 2001 From: jaredlll08 Date: Fri, 6 Feb 2015 17:14:15 +0200 Subject: [PATCH] When removing recipes, it removes all instances of the recipes --- .../java/modtweaker/mods/forestry/handlers/Fermenter.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/modtweaker/mods/forestry/handlers/Fermenter.java b/src/main/java/modtweaker/mods/forestry/handlers/Fermenter.java index 637641e..049f30c 100644 --- a/src/main/java/modtweaker/mods/forestry/handlers/Fermenter.java +++ b/src/main/java/modtweaker/mods/forestry/handlers/Fermenter.java @@ -4,6 +4,7 @@ import static modtweaker.helpers.InputHelper.getFluid; import static modtweaker.helpers.InputHelper.toFluid; import static modtweaker.helpers.InputHelper.toStack; +import java.util.ArrayList; import java.util.List; import minetweaker.MineTweakerAPI; @@ -53,13 +54,13 @@ public class Fermenter { @Override public void apply() { - for (Recipe r : RecipeManager.recipes) { + ArrayList recipes = RecipeManager.recipes; + for (Recipe r : recipes) { if (r.resource != null && r.resource.isItemEqual(stack)) { recipe = r; - break; + RecipeManager.recipes.remove(recipe); } } - RecipeManager.recipes.remove(recipe); }