Skip to content

Fix blueprint shop result tooltip cycling#10346

Open
sumithesum wants to merge 1 commit into
Creators-of-Create:mc1.21.1/devfrom
sumithesum:fix-blueprint-shop-tooltip-cycling
Open

Fix blueprint shop result tooltip cycling#10346
sumithesum wants to merge 1 commit into
Creators-of-Create:mc1.21.1/devfrom
sumithesum:fix-blueprint-shop-tooltip-cycling

Conversation

@sumithesum
Copy link
Copy Markdown

Fix blueprint shop result tooltip cycling

The tooltip cycling logic counted only result stacks with multi-line tooltips, but compared the cycle index against the raw result list index. When some results did not have eligible tooltips, the modulo result could never match later raw indices, preventing valid tooltips from being rendered.

This now collects eligible result tooltips first and cycles directly over that filtered list, avoiding modulo-by-zero and keeping the cycling index aligned with the rendered tooltip candidates.

Fix blueprint shop result tooltip cycling

The tooltip cycling logic counted only result stacks with multi-line tooltips, but compared the cycle index against the raw result list index. When some results did not have eligible tooltips, the modulo result could never match later raw indices, preventing valid tooltips from being rendered.

This now collects eligible result tooltips first and cycles directly over that filtered list, avoiding modulo-by-zero and keeping the cycling index aligned with the rendered tooltip candidates.
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.

1 participant