Fix ME Portable Cell voiding/dupes & disabled slot idiocy

Fixes #383, fixes #299
This commit is contained in:
NotMyWing
2025-03-18 18:22:03 +11:00
parent f42a5778d2
commit f1e5a33a6e
2 changed files with 7 additions and 2 deletions
@@ -961,8 +961,12 @@ public abstract class AEBaseContainer extends Container {
@Override
public ItemStack slotClick(int slotId, int dragType, ClickType clickTypeIn, @NotNull EntityPlayer player) {
final var slot = this.getSlot(slotId);
if (slot instanceof SlotDisabled) {
return ItemStack.EMPTY;
}
if (slotId >= 0 && clickTypeIn == ClickType.PICKUP) {
final var slot = this.getSlot(slotId);
if (slot instanceof AppEngSlot appEngSlot) {
var slotStack = slot.getStack();
var draggedStack = this.invPlayer.getItemStack();