mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 13:08:20 +07:00
Bugfixes
This commit is contained in:
parent
5a0669d437
commit
5d729c1e8d
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user