diff options
| author | Alezito2008 <92759854+Alezito2008@users.noreply.github.com> | 2026-03-22 23:05:04 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-22 21:05:04 -0500 |
| commit | ebab3ec40f50a219c1f535d5b24cfd1a9b9a58fe (patch) | |
| tree | 6fda7ea8ce3092d6dba4638fd0adbb8d20867739 /Minecraft.World | |
| parent | c1ce97f7be1fc78c2e7cf9e9cb0627aa5b4e8629 (diff) | |
Clicking outside container now drops items (#1306)
Java Edition KBM input parity
Diffstat (limited to 'Minecraft.World')
| -rw-r--r-- | Minecraft.World/AbstractContainerMenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/AbstractContainerMenu.cpp b/Minecraft.World/AbstractContainerMenu.cpp index c98fc22c..0b2abc23 100644 --- a/Minecraft.World/AbstractContainerMenu.cpp +++ b/Minecraft.World/AbstractContainerMenu.cpp @@ -157,7 +157,7 @@ shared_ptr<ItemInstance> AbstractContainerMenu::clicked(int slotIndex, int butto shared_ptr<ItemInstance> clickedEntity = nullptr; shared_ptr<Inventory> inventory = player->inventory; - if (slotIndex < 0 || slotIndex >= (int)slots.size()) + if ((slotIndex < 0 && slotIndex != SLOT_CLICKED_OUTSIDE) || slotIndex >= (int)slots.size()) return nullptr; if (clickType == CLICK_QUICK_CRAFT) |
