-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct ConnectScreen.BLOCKED_HOST_TEXT -> ConnectScreen.UNKNOWN_HOST_TEXT #3781
Conversation
@@ -13,7 +13,7 @@ CLASS net/minecraft/class_412 net/minecraft/client/gui/screen/multiplayer/Connec | |||
FIELD field_2412 parent Lnet/minecraft/class_437; | |||
FIELD field_2413 status Lnet/minecraft/class_2561; | |||
FIELD field_32238 NARRATOR_INTERVAL J | |||
FIELD field_33736 BLOCKED_HOST_TEXT Lnet/minecraft/class_2561; | |||
FIELD field_33736 UNKNOWN_HOST_TEXT Lnet/minecraft/class_2561; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would argue to name this UNKNOWN_BLOCKED_HOST_TEXT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think UNKNOWN_HOST_TEXT
is a good name. The text is the following, which translates as 'Unknown host':
public static final Text BLOCKED_HOST_TEXT = Text.translatable("disconnect.genericReason", Text.translatable("disconnect.unknownHost"));
🚀 Target branch has been updated to 24w06a |
🚨 Unable to automatically update branch with the latest changes |
🎉 Target branch is already set to 24w06a |
🚨 Unable to automatically update branch with the latest changes |
Im not sure why its failing to merge, ive done it manually. |
Although this text component is used when a server has been blocked by Mojang, it's also shown when no IP addresses can be found for the specified hostname, as can be shown in this excerpt from the MultiplayerServerListPinger class:
The default resolver will return an empty optional both when the server is blocked and when no A and AAAA records are found.