mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 13:08:20 +07:00
Fixed #4000
This commit is contained in:
parent
446dd6abe5
commit
e6717b37ce
@ -125,9 +125,11 @@ public class DesktopLauncher extends ClientLauncher{
|
||||
boolean[] isShutdown = {false};
|
||||
|
||||
Events.on(ClientLoadEvent.class, event -> {
|
||||
player.name(SVars.net.friends.getPersonaName());
|
||||
Core.settings.defaults("name", SVars.net.friends.getPersonaName());
|
||||
Core.settings.put("name", player.name);
|
||||
if(player.name.isEmpty()){
|
||||
player.name = SVars.net.friends.getPersonaName();
|
||||
Core.settings.put("name", player.name);
|
||||
}
|
||||
//update callbacks
|
||||
Core.app.addListener(new ApplicationListener(){
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user