#1630 "Fix" item conduits preserving invalid stack sizes

This commit is contained in:
tterrag1098 committed 2015-01-31 20:51:35 -05:00
1 parent e505570c8d
commit ab40c70003
2 files changed
+2 -1

No files matched your search

@@ -92,7 +92,6 @@ public class NetworkedInventory {
}
public void onTick(long tick) {
int transfered;
if(tickDeficit > 0 || !canExtract() || !con.isExtractionRedstoneConditionMet(conDir)) {
//do nothing
} else {
@@ -90,6 +90,7 @@ public class ItemUtil {
ItemStack contents = sidedInv.getStackInSlot(slot);
ItemStack toInsert = item.copy();
toInsert.stackSize = Math.min(toInsert.stackSize, sidedInv.getInventoryStackLimit());
toInsert.stackSize = Math.min(toInsert.stackSize, toInsert.getMaxStackSize()); // some inventories like filing cap
toInsert.stackSize = Math.min(toInsert.stackSize, numToInsert);
int inserted = 0;
if(contents == null) {
@@ -126,6 +127,7 @@ public class ItemUtil {
if(!isStackFull(contents)) {
ItemStack toInsert = item.copy();
toInsert.stackSize = Math.min(toInsert.stackSize, inv.getInventoryStackLimit());
toInsert.stackSize = Math.min(toInsert.stackSize, toInsert.getMaxDamage()); // some inventories like filing cap
toInsert.stackSize = Math.min(toInsert.stackSize, numToInsert);
int inserted = 0;
if(contents == null) {