mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-23 22:28:08 +07:00
Fixed ghosts appearing in player list
This commit is contained in:
@ -70,9 +70,19 @@ public class PlayerListFragment extends Fragment{
|
||||
if(!checkmap.containsKey(player) || checkmap.get(player, false) != player.isAdmin){
|
||||
rebuild = true;
|
||||
}
|
||||
checkmap.put(player, player.isAdmin);
|
||||
}
|
||||
if(rebuild) rebuild();
|
||||
for(Player player : checkmap.keys()){
|
||||
if(!player.isAdded()){
|
||||
rebuild = true;
|
||||
}
|
||||
}
|
||||
if(rebuild){
|
||||
rebuild();
|
||||
checkmap.clear();
|
||||
for(Player player : playerGroup.all()){
|
||||
checkmap.put(player, player.isAdmin);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
visible(() -> visible);
|
||||
|
Reference in New Issue
Block a user