1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-19 11:39:50 +01:00

Fix distance map contains ()

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 (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());
+ }
+ }