diff options
| author | void_17 <61356189+void2012@users.noreply.github.com> | 2026-03-02 13:24:19 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 13:24:19 +0700 |
| commit | 236e9d9f71a3067c47a1bdaa828b055c854bc29f (patch) | |
| tree | 4fe16d0fcc0c7b80e98929041ab795a769dbc0f2 /Minecraft.Client/Input.cpp | |
| parent | 9e5d9d19ee62085f4e2ab53e7c13e592d9209c97 (diff) | |
Revert "Implement item drop functionality with Q key (#99)"
This reverts commit 9e5d9d19ee62085f4e2ab53e7c13e592d9209c97.
Diffstat (limited to 'Minecraft.Client/Input.cpp')
| -rw-r--r-- | Minecraft.Client/Input.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Minecraft.Client/Input.cpp b/Minecraft.Client/Input.cpp index 092b2759..c1a3bb31 100644 --- a/Minecraft.Client/Input.cpp +++ b/Minecraft.Client/Input.cpp @@ -169,45 +169,6 @@ void Input::tick(LocalPlayer *player) if (iPad == 0 && KMInput.IsKeyDown(VK_SPACE) && pMinecraft->localgameModes[iPad]->isInputAllowed(MINECRAFT_ACTION_JUMP)) jumping = true; #endif - -#ifdef _WINDOWS64 - // Keyboard drop (Q) - // Press Q to drop one item. Hold Ctrl+Q to drop the whole stack. - if (iPad == 0 && KMInput.ConsumeKeyPress('Q') && pMinecraft->localgameModes[iPad]->isInputAllowed(MINECRAFT_ACTION_DROP) && !menuOpen) - { - // Prevent dropping while actively destroying a block (fix crash) - MultiPlayerGameMode *mpgm = nullptr; - if (pMinecraft->localgameModes[iPad] != NULL) - { - mpgm = dynamic_cast<MultiPlayerGameMode *>(pMinecraft->localgameModes[iPad]); - } - if (mpgm != nullptr && mpgm->IsDestroying()) - { - // ignore drop while destroying - } - else - { - if (player != NULL) - { - // If CTRL is held, drop the entire stack - if (KMInput.IsKeyDown(VK_CONTROL)) - { - shared_ptr<ItemInstance> sel = player->inventory->getSelected(); - if (sel != NULL) - { - shared_ptr<ItemInstance> toDrop = player->inventory->removeItem(player->inventory->selected, sel->count); - if (toDrop != NULL) player->drop(toDrop, false); - } - } - else - { - // Drop a single item (Player::drop() will remove 1 from selected) - player->drop(); - } - } - } - } -#endif #ifndef _CONTENT_PACKAGE if (app.GetFreezePlayers()) jumping = false; |
