Skip to content

Commit

Permalink
fix io bus shift click crash
Browse files Browse the repository at this point in the history
  • Loading branch information
asdflj committed Dec 24, 2022
1 parent 043c6a6 commit 0a11fb0
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,7 @@ public ItemStack transferStackInSlot(final EntityPlayer p, final int idx) {
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);
}
}

Expand Down

0 comments on commit 0a11fb0

Please sign in to comment.