mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 04:32:18 +00:00
#1630 "Fix" item conduits preserving invalid stack sizes
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user