Skip to content

Comments

Prevent unintentional hot bar overwrites#29

Merged
LukynkaCZE merged 1 commit intoLukynkaCZE:masterfrom
stabery:master
Mar 15, 2025
Merged

Prevent unintentional hot bar overwrites#29
LukynkaCZE merged 1 commit intoLukynkaCZE:masterfrom
stabery:master

Conversation

@stabery
Copy link
Contributor

@stabery stabery commented Mar 14, 2025

When erasing items in inventory in creative mode, you can usually do so by placing the item in creative inventory. However, with this mod, placing an item on the hot bar tab will overwrite the item if it is already registered in the slot where you placed it, and you may inadvertently lose a important item that you have saved.

With this change, clicking on a slot in a hot bar tab that already has an item in it will no longer register the item, and the item held by the cursor will be erased.
On the other hand, if no items are registered in the slot, the item can be registered as usual.

@LukynkaCZE
Copy link
Owner

dw about the tests, I need to change it to actions/checkout@v4, looks good otherwise

@LukynkaCZE LukynkaCZE merged commit f2e089b into LukynkaCZE:master Mar 15, 2025
0 of 2 checks passed
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.

2 participants