mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 06:48:23 +01:00
Fix distance map contains (#6530)
This commit is contained in:
parent
bc2890b955
commit
77026633f4
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
|
Loading…
Reference in a new issue