This commit is contained in:
Anuken 2019-09-19 23:46:27 -04:00
parent 5a0669d437
commit 5d729c1e8d
3 changed files with 3 additions and 9 deletions

View File

@ -704,16 +704,10 @@ public class NetServer implements ApplicationListener{
//iterate through each player
for(int i = 0; i < playerGroup.size(); i++){
Player player = playerGroup.all().get(i);
if(player.isLocal) continue;
if(player.isLocal || player.con == null) continue;
NetConnection connection = player.con;
if(connection == null || !connection.isConnected()){
//player disconnected, call d/c event
onDisconnect(player, "disappeared");
return;
}
if(!player.timer.get(Player.timerSync, serverSyncTime) || !connection.hasConnected) continue;
writeSnapshot(player);

View File

@ -67,7 +67,7 @@ public class PausedDialog extends FloatingDialog{
ui.host.show();
}
}
}).disabled(b -> net.active() && !steam).colspan(2).width(dw * 2 + 20f).update(e -> e.setText(net.active() && steam ? "$invitefriends" : "$hostserver"));
}).disabled(b -> net.active() && !steam).colspan(2).width(dw * 2 + 20f).update(e -> e.setText(net.active() && steam && net.server() ? "$invitefriends" : "$hostserver"));
}
cont.row();

View File

@ -143,7 +143,7 @@ public class DesktopLauncher extends ClientLauncher{
SVars.user = new SUser();
Events.on(ClientLoadEvent.class, event -> {
player.name = SVars.net.friends.getPersonaName();
player.name = "ffmpeg";//SVars.net.friends.getPersonaName();
Core.settings.defaults("name", SVars.net.friends.getPersonaName());
Core.settings.put("name", player.name);
Core.settings.save();