Merge pull request #202 from SpoilersMC/1.7.10

Correct wrong perfection check in digital miner
This commit is contained in:
maggi373 authored and GitHub committed 2025-01-05 15:56:09 +01:00
commit 13db7cb1df
1 file changed
+2 -2
@@ -507,7 +507,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
continue stacks;
}
else if(ItemStack.areItemStacksEqual(testInv[i], stack) && testInv[i].stackSize+stack.stackSize <= stack.getMaxStackSize())
else if(InventoryUtils.areItemsStackable(testInv[i], stack) && testInv[i].stackSize+stack.stackSize <= stack.getMaxStackSize())
{
testInv[i].stackSize += stack.stackSize;
added++;
@@ -555,7 +555,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
continue stacks;
}
else if(ItemStack.areItemStacksEqual(inventory[i], stack) && inventory[i].stackSize+stack.stackSize <= stack.getMaxStackSize())
else if(InventoryUtils.areItemsStackable(inventory[i], stack) && inventory[i].stackSize+stack.stackSize <= stack.getMaxStackSize())
{
inventory[i].stackSize += stack.stackSize;