From c17791e99c4a18b7399333edc4556c5157229a3f Mon Sep 17 00:00:00 2001 From: Tobias Wohlfarth Date: Tue, 30 Jun 2015 22:35:17 +0200 Subject: [PATCH] fix #117: Railcraft Coke oven recipe remove; equal() is not the same as isItemEqual --- src/main/java/modtweaker2/mods/railcraft/handlers/CokeOven.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/modtweaker2/mods/railcraft/handlers/CokeOven.java b/src/main/java/modtweaker2/mods/railcraft/handlers/CokeOven.java index a0449b7..20011ae 100644 --- a/src/main/java/modtweaker2/mods/railcraft/handlers/CokeOven.java +++ b/src/main/java/modtweaker2/mods/railcraft/handlers/CokeOven.java @@ -92,7 +92,7 @@ public class CokeOven { @Override public void apply() { for (ICokeOvenRecipe r : RailcraftHelper.oven) { - if (r.getOutput() != null && r.getOutput().getItem().equals(stack)) { + if (r.getOutput() != null && r.getOutput().isItemEqual(stack) && ItemStack.areItemStackTagsEqual(r.getOutput(), stack)) { recipes.add(r); } }