Skip to content

Fix: items not dropping when clicking outside a container#1306

Open
Alezito2008 wants to merge 1 commit intosmartcmd:mainfrom
Alezito2008:fix/container-click-outside-drop
Open

Fix: items not dropping when clicking outside a container#1306
Alezito2008 wants to merge 1 commit intosmartcmd:mainfrom
Alezito2008:fix/container-click-outside-drop

Conversation

@Alezito2008
Copy link
Contributor

Description

Fixed an issue where players were unable to drop items by clicking outside of the container boundaries.

Changes

Previous Behavior

Dragging an item outside the container screen and clicking would not drop the item

Root Cause

AbstractContainerMenu::clicked would early return when slotIndex was SLOT_CLICKED_OUTSIDE

New Behavior

Dragging an item outside the container screen and clicking now drops the item

Fix Implementation

Modified the boundary check in AbstractContainerMenu::clicked to allow the function to continue if the index is equal to SLOT_CLICKED_OUTSIDE

AI Use Disclosure

No

Related Issues

@Alezito2008
Copy link
Contributor Author

Minecraft.2026-03-16.21-26-12.mp4

m0zzaR added a commit to m0zzaR/MinecraftConsoles that referenced this pull request Mar 17, 2026
Implemented a feature that allows players to toggle flying mode by pressing the 'H' key when the menu is not displayed and no screen is active. This change enhances gameplay by providing more control over player abilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Can't drop items from inventory screen

1 participant