Merge pull request #50 from asdflj/io_bus

fix io bus shift click upgrade card crash
This commit is contained in:
Martin Robertz authored and GitHub committed 2023-01-03 08:48:03 +01:00
commit 644e3e2a6f
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);
}
}