fix io bus shift click crash

This commit is contained in:
asdflj committed 2022-12-24 16:58:27 +08:00
1 parent 043c6a6cc2
commit 0a11fb0431
1 file changed
+1 -16
@@ -54,22 +54,7 @@ public abstract class ContainerFluidConfigurable extends ContainerUpgradeable {
this.standardDetectAndSendChanges();
return null;
} else {
if (idx < this.availableUpgrades()) {
if (!mergeItemStack(
tis,
this.getFakeFluidInv().getSizeInventory() + this.availableUpgrades(),
this.inventorySlots.size(),
false)) return null;
} else if (idx >= this.getFakeFluidInv().getSizeInventory() + this.availableUpgrades()) {
if (!mergeItemStack(tis, 0, this.availableUpgrades(), false)) return null;
}
if (tis.stackSize == 0) {
clickSlot.putStack(null);
} else {
clickSlot.onSlotChanged();
}
this.standardDetectAndSendChanges();
return tis;
return super.transferStackInSlot(p, idx);
}
}