Skip to content

Conversation

@ALongStringOfNumbers
Copy link
Contributor

Ports the Mixin from here: GregTechCEu/GregTech#2868 Which solves an issue that we found during updating MUI2 where the text would not be properly updated if the widget did not have text originally.

I went with an empty check for the new text, because as far as I could see all the text returned by this.key.getFormatted() was non null.

@brachy84
Copy link
Member

I think Objects.equals is better here

@brachy84 brachy84 merged commit 1abacfa into CleanroomMC:master Nov 12, 2025
brachy84 pushed a commit to brachy84/ModularUI2-GTNH that referenced this pull request Nov 12, 2025
* Fixes the Text Changed String check

* Change to use Objects.equals()

(cherry picked from commit 1abacfa)
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