attempt to fix wireless terminals overwriting items in hand

This commit is contained in:
PrototypeTrousers
2023-02-18 21:05:46 -03:00
parent 82be548fc7
commit 5d7f552643
4 changed files with 5 additions and 16 deletions
@@ -85,11 +85,7 @@ public class ContainerMEPortableCell extends ContainerMEMonitorable implements I
if (currentItem.isEmpty()) {
this.setValidContainer(false);
} else if (!this.wirelessTerminalGUIObject.getItemStack().isEmpty() && currentItem != this.wirelessTerminalGUIObject.getItemStack()) {
if (ItemStack.areItemsEqual(this.wirelessTerminalGUIObject.getItemStack(), currentItem)) {
this.getPlayerInv().setInventorySlotContents(this.getPlayerInv().currentItem, this.wirelessTerminalGUIObject.getItemStack());
} else {
this.setValidContainer(false);
}
this.setValidContainer(false);
}
// drain 1 ae t