From 18794d212348fd0d05e2115160cb9072533eb880 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 29 May 2019 05:54:11 +0100 Subject: [PATCH] Don't replace entries in the tracked player map (Fixes #2102) --- ...Send-absolute-position-the-first-time-an-entity-is-s.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch b/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch index 1041b4cc1d..8bfcdbe09c 100644 --- a/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch +++ b/Spigot-Server-Patches/Send-absolute-position-the-first-time-an-entity-is-s.patch @@ -77,7 +77,7 @@ index 315c3d9165..aaf3a54b08 100644 this.c(); diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java -index 44e3340773..6c904968d7 100644 +index 44e3340773..cfc7f5a118 100644 --- a/src/main/java/net/minecraft/server/PlayerChunkMap.java +++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java @@ -0,0 +0,0 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d { @@ -102,7 +102,7 @@ index 44e3340773..6c904968d7 100644 // CraftBukkit end - if (flag1 && this.trackedPlayers.add(entityplayer)) { -+ if (flag1 && this.trackedPlayerMap.put(entityplayer, true) == null) { // Paper ++ if (flag1 && this.trackedPlayerMap.putIfAbsent(entityplayer, true) == null) { // Paper this.trackerEntry.b(entityplayer); } } else if (this.trackedPlayers.remove(entityplayer)) {