Skip to content

fix(paper): prevent inventory heads toggling favorites - #101

Merged
TheSilentPro merged 3 commits into
masterfrom
fix/issue-96-favorites-inventory-click
Oct 15, 2026
Merged

TheSilentPro merged 3 commits into
masterfrom
fix/issue-96-favorites-inventory-click

Conversation

@TheSilentPro

Copy link
Copy Markdown
Collaborator

Summary

Fixes #96.

HeadDB's global inventory click listener was treating any HeadDB-tagged item under the cursor as a favorite-toggle target on right-click. That caused normal right-click stack splitting in a player's inventory to be cancelled and toggle favorites instead.

This change scopes that fallback behavior to rendered Grafik search-result items only:

  • search-result head icons receive an internal GUI-only marker;
  • the global listener requires that marker and a click in the top inventory before toggling favorites;
  • heads created/given to players remain unmarked because the take action creates a fresh item.

Normal player inventories and ordinary containers are therefore no longer intercepted, while right-click favorite toggling in search results is preserved.

@TheSilentPro
TheSilentPro merged commit 00d8c56 into master Oct 15, 2026
5 checks passed
@TheSilentPro
TheSilentPro deleted the fix/issue-96-favorites-inventory-click branch October 15, 2026 18:58
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]: Right clicking any hdb head in my inventory adds it to my 'favourites' (not in the hdb menu)

1 participant