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; }