Skip to content

Fix disk tooltip display error#3392

Merged
Gu-ZT merged 1 commit intoAnvil-Dev:dev/1.21/1.6from
ZhuRuoLing:fix/disk_tooltip
Apr 9, 2026
Merged

Fix disk tooltip display error#3392
Gu-ZT merged 1 commit intoAnvil-Dev:dev/1.21/1.6from
ZhuRuoLing:fix/disk_tooltip

Conversation

@ZhuRuoLing
Copy link
Copy Markdown
Contributor

  • Improved localization for the stored block name in the disk item's tooltip by using storedFrom.toLanguageKey() instead of storedFrom.getPath() when building the translation key.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect disk tooltip localization by generating the stored block translation key using the full ResourceLocation language key rather than assuming the anvilcraft namespace.

Changes:

  • Build the stored block name translation key with storedFrom.toLanguageKey() to properly include namespace (and language-key formatting).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Gu-ZT Gu-ZT merged commit 18ce6f9 into Anvil-Dev:dev/1.21/1.6 Apr 9, 2026
6 of 8 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.

3 participants