Skip to content

Use passed ItemStack when inserting hand into the item hatch#10466

Open
vercte wants to merge 1 commit into
Creators-of-Create:mc1.21.1/devfrom
vercte:mc1.21.1/satchel-hatch-fix
Open

Use passed ItemStack when inserting hand into the item hatch#10466
vercte wants to merge 1 commit into
Creators-of-Create:mc1.21.1/devfrom
vercte:mc1.21.1/satchel-hatch-fix

Conversation

@vercte

@vercte vercte commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

This PR makes the Item Hatch directly modify the passed item stack when right-clicked if the player is depositing the item in their hand. This prevents unexpected behaviour with my mod Satchels, as described in vercte/satchels#3:
Before these changes, it would always deposit the selected slot in the normal hotbar, which may be unexpected to the player as their held item would not be deposited and the slot below the satchel would be. These changes always deposit the held item correctly instead of directly checking the player inventory.

@vercte vercte added area: compatibility Issue only happens when other mods are present pr type: fix PR fixes a bug pr flag: simple PR has minimal changes labels Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compatibility Issue only happens when other mods are present pr flag: simple PR has minimal changes pr type: fix PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant