Bugfixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user