mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 15:22:57 +00:00
Fix #1590 [1.11.2] Tin tubes creating in the carpenter without tin.
This commit is contained in:
1 parent
6f285d1c88
commit
919ce8238b
2 files changed
+3
-3
No files matched your search
@@ -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());
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user