diff --git a/src/main/java/io/github/gaming32/worldhost/gui/screen/AddFriendScreen.java b/src/main/java/io/github/gaming32/worldhost/gui/screen/AddFriendScreen.java index 2c30032..14932e7 100644 --- a/src/main/java/io/github/gaming32/worldhost/gui/screen/AddFriendScreen.java +++ b/src/main/java/io/github/gaming32/worldhost/gui/screen/AddFriendScreen.java @@ -83,7 +83,7 @@ protected void init() { //$$ usernameField.setFocus(true); //#endif if (friendProfile != null) { - usernameField.setValue(friendProfile.getName()); + usernameField.setValue(WorldHost.getIfBlank(friendProfile.getName(), () -> friendProfile.getId().toString())); } if (usernameResponder == null) { // Only set the responder here on first init