mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-08 19:04:46 +00:00
Merge pull request #202 from SpoilersMC/1.7.10
Correct wrong perfection check in digital miner
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user