Skip to content

Fix getdefaultwidth crash on servers#76

Open
jurrejelle wants to merge 1 commit into
1.20.1from
jj/fix-text-crash-on-server
Open

Fix getdefaultwidth crash on servers#76
jurrejelle wants to merge 1 commit into
1.20.1from
jj/fix-text-crash-on-server

Conversation

@jurrejelle

Copy link
Copy Markdown
Collaborator

Before, doing something like "Text.str('>').asIcon()" in a UI would crash the server.

If I understand correctly, since the server's widget tree is only used to collect sync handlers, it doesn't need to know the actual width (actually it can't, since it doesn't have the font renderer), so I'm just returning 18x18 as a default

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