From b4c5cefcbbd1ab484bba14f7846bbf75576dca33 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sat, 10 Aug 2024 22:43:51 +0300 Subject: [PATCH] shift+click fix --- .../ukrainian_dlight/screen/BrewingKegScreenHandler.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/megatrex4/ukrainian_dlight/screen/BrewingKegScreenHandler.java b/src/main/java/com/megatrex4/ukrainian_dlight/screen/BrewingKegScreenHandler.java index 8431460..18b9c8d 100644 --- a/src/main/java/com/megatrex4/ukrainian_dlight/screen/BrewingKegScreenHandler.java +++ b/src/main/java/com/megatrex4/ukrainian_dlight/screen/BrewingKegScreenHandler.java @@ -138,11 +138,6 @@ public ItemStack quickMove(PlayerEntity playerIn, int index) { ItemStack slotItemStack = slot.getStack(); itemStack = slotItemStack.copy(); - // Prevent moving items into DRINKS_DISPLAY_SLOT and OUTPUT_SLOT - if (index == DRINKS_DISPLAY_SLOT || index == OUTPUT_SLOT) { - return ItemStack.EMPTY; - } - // Handle item transfer from OUTPUT_SLOT to player inventory if (index == OUTPUT_SLOT) { if (!this.insertItem(slotItemStack, 11, Math.min(47, this.slots.size()), true)) { // Ensure range is within bounds @@ -150,6 +145,10 @@ public ItemStack quickMove(PlayerEntity playerIn, int index) { } slot.onQuickTransfer(slotItemStack, itemStack); } + // Prevent moving items into DRINKS_DISPLAY_SLOT + else if (index == DRINKS_DISPLAY_SLOT) { + return ItemStack.EMPTY; + } // Handle item transfer from player inventory slots else if (index >= 11 && index < Math.min(47, this.slots.size())) { // Ensure range is within bounds if (slotItemStack.getItem() == Items.WATER_BUCKET) {