Fix distance map contains (#6530)

This commit is contained in:
Nassim Jahnke 2021-08-31 14:47:00 +02:00
parent bc2890b955
commit 77026633f4

View file

@ -271,7 +271,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // for players that were removed + // for players that were removed
+ +
+ for (ServerPlayerConnection conn : this.seenBy.toArray(new ServerPlayerConnection[0])) { // avoid CME + for (ServerPlayerConnection conn : this.seenBy.toArray(new ServerPlayerConnection[0])) { // avoid CME
+ if (newTrackerCandidates == null || !newTrackerCandidates.contains(conn)) { + if (newTrackerCandidates == null || !newTrackerCandidates.contains(conn.getPlayer())) {
+ this.updatePlayer(conn.getPlayer()); + this.updatePlayer(conn.getPlayer());
+ } + }
+ } + }