mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-12 00:07:29 +00:00
fix io bus shift click crash
This commit is contained in:
1 parent
043c6a6cc2
commit
0a11fb0431
1 file changed
+1
-16
+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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user