From 919ce8238bf53a7b3bd78f599880b3d42aa99c6f Mon Sep 17 00:00:00 2001 From: Nedelosk Date: Sun, 26 Feb 2017 20:54:48 +0100 Subject: [PATCH] Fix #1590 [1.11.2] Tin tubes creating in the carpenter without tin. --- src/main/java/forestry/core/utils/InventoryUtil.java | 2 +- src/main/java/forestry/core/utils/ItemStackUtil.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/forestry/core/utils/InventoryUtil.java b/src/main/java/forestry/core/utils/InventoryUtil.java index 2c24b0df8..f0b792eb1 100644 --- a/src/main/java/forestry/core/utils/InventoryUtil.java +++ b/src/main/java/forestry/core/utils/InventoryUtil.java @@ -303,7 +303,7 @@ public abstract class InventoryUtil { for (int j = 0; j < inventory.getSizeInventory(); j++) { ItemStack stackInSlot = inventory.getStackInSlot(j); if (!stackInSlot.isEmpty()) { - if (ItemStackUtil.isCraftingEquivalent(stackToRemove, stackInSlot, oreDictOfStack, craftingTools)) { + if (ItemStackUtil.isCraftingEquivalent(stackInSlot, stackToRemove, oreDictOfStack, craftingTools)) { ItemStack removed = inventory.decrStackSize(j, stackToRemove.getCount()); stackToRemove.shrink(removed.getCount()); diff --git a/src/main/java/forestry/core/utils/ItemStackUtil.java b/src/main/java/forestry/core/utils/ItemStackUtil.java index e9ac79eab..9690e92ed 100644 --- a/src/main/java/forestry/core/utils/ItemStackUtil.java +++ b/src/main/java/forestry/core/utils/ItemStackUtil.java @@ -372,10 +372,10 @@ public abstract class ItemStackUtil { } if (oreDict != null && !oreDict.isEmpty()) { - int[] baseIds = OreDictionary.getOreIDs(base); + int[] validIds = OreDictionary.getOreIDs(comparison); int validID = OreDictionary.getOreID(oreDict); - for(int id : baseIds){ + for(int id : validIds){ if (id == validID) { return true; }