When removing recipes, it removes all instances of the recipes

This commit is contained in:
jaredlll08 2015-02-06 17:14:15 +02:00
parent 380559fdb8
commit 037af5364f

View file

@ -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<Recipe> 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);
}