mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 06:53:24 +00:00
#875 Item conduit/Crafting station(TC) issue
This commit is contained in:
1 parent
04ee947c8d
commit
9153b06414
1 file changed
+2
-10
@@ -175,18 +175,10 @@ public class NetworkedInventory {
|
||||
if(numInserted <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ItemStack curStack = getInventory().getStackInSlot(slot);
|
||||
if(curStack != null) {
|
||||
curStack = curStack.copy();
|
||||
curStack.stackSize -= numInserted;
|
||||
if(curStack.stackSize > 0) {
|
||||
getInventory().setInventorySlotContents(slot, curStack);
|
||||
getInventory().markDirty();
|
||||
} else {
|
||||
getInventory().setInventorySlotContents(slot, null);
|
||||
getInventory().markDirty();
|
||||
}
|
||||
getInventory().decrStackSize(slot, numInserted);
|
||||
getInventory().markDirty();
|
||||
}
|
||||
con.itemsExtracted(numInserted, slot);
|
||||
tickDeficit = Math.round(numInserted * con.getTickTimePerItem(conDir));
|
||||
|
||||
Reference in new issue
Block a user