From 9e88dafef1a6189eb111fa689d0d7d2eb53a054e Mon Sep 17 00:00:00 2001 From: Adem Kurt <138557116+Adem-Kurt@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:07:09 +0300 Subject: [PATCH 1/2] Fix: Right-click dropping items on Creative mode inventory --- Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp index a0c0ebddf..e5c8787cf 100644 --- a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp +++ b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp @@ -1029,7 +1029,7 @@ IUIScene_AbstractContainerMenu::ESceneSection IUIScene_CreativeMenu::GetSectionA bool IUIScene_CreativeMenu::handleValidKeyPress(int iPad, int buttonNum, BOOL quickKeyHeld) { // 4J Added - Make pressing the X button clear the hotbar - if(buttonNum == 1) + if(buttonNum == 1 && !m_bPointerOutsideMenu) // Don't clear the hotbar if pointer outside the menu, so handleOutsideClicked can drop the item { Minecraft *pMinecraft = Minecraft::GetInstance(); for(unsigned int i = TabSpec::MAX_SIZE; i < TabSpec::MAX_SIZE + 9; ++i) From 62df888cb4ac58ac58d740a68ddca2b9356970e8 Mon Sep 17 00:00:00 2001 From: Adem Kurt <138557116+Adem-Kurt@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:13:08 +0300 Subject: [PATCH 2/2] Fix dropping items outside menus --- Minecraft.World/AbstractContainerMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.World/AbstractContainerMenu.cpp b/Minecraft.World/AbstractContainerMenu.cpp index c98fc22c5..6dc55ee95 100644 --- a/Minecraft.World/AbstractContainerMenu.cpp +++ b/Minecraft.World/AbstractContainerMenu.cpp @@ -157,7 +157,7 @@ shared_ptr AbstractContainerMenu::clicked(int slotIndex, int butto shared_ptr clickedEntity = nullptr; shared_ptr inventory = player->inventory; - if (slotIndex < 0 || slotIndex >= (int)slots.size()) + if ((slotIndex < 0 || slotIndex >= (int)slots.size()) && slotIndex != SLOT_CLICKED_OUTSIDE) return nullptr; if (clickType == CLICK_QUICK_CRAFT) @@ -778,4 +778,4 @@ int AbstractContainerMenu::getRedstoneSignalFromContainer(shared_ptr bool AbstractContainerMenu::isValidIngredient(shared_ptr item, int slotId) { return true; -} \ No newline at end of file +}