Skip to content

Commit

Permalink
Default online username to "Guest"
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed May 12, 2024
1 parent 7d696e6 commit be1ae05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ru/nsu/ccfit/zuev/osu/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public static void setScaleMultiplier(final float scaleMultiplier) {
}

public static String getOnlineUsername() {
return onlineUsername;
return !onlineUsername.isEmpty() ? onlineUsername : "Guest";
}

public static void setOnlineUsername(String onlineUsername) {
Expand Down

0 comments on commit be1ae05

Please sign in to comment.