mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Fix distance map contains (#6530)
This commit is contained in:
@@ -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());
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Reference in New Issue
Block a user