This commit is contained in:
Anuken 2020-12-16 09:28:06 -05:00
parent 446dd6abe5
commit e6717b37ce

View File

@ -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