Skip to content

Allow LangKeys to work when MC is loading#159

Merged
brachy84 merged 1 commit into
CleanroomMC:masterfrom
Zorbatron:zb/lang-key-mc-loading-fix
Aug 22, 2025
Merged

Allow LangKeys to work when MC is loading#159
brachy84 merged 1 commit into
CleanroomMC:masterfrom
Zorbatron:zb/lang-key-mc-loading-fix

Conversation

@Zorbatron

@Zorbatron Zorbatron commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Fixes lang keys always returning null during the MC loading phase due to ClientScreenHandler.getTicks() returning 0 which early returns the cached string which is uninitialized by setting time to -1, so it can properly translate and cache the key.
Upstreaming GregTechCEu/GregTech#2854

@brachy84 brachy84 merged commit 0c3fc8b into CleanroomMC:master Aug 22, 2025
@Zorbatron Zorbatron deleted the zb/lang-key-mc-loading-fix branch August 23, 2025 16:05
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