diff options
Diffstat (limited to 'nms-patches/ChunkProviderServer.patch')
-rw-r--r-- | nms-patches/ChunkProviderServer.patch | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nms-patches/ChunkProviderServer.patch b/nms-patches/ChunkProviderServer.patch index f16a3837..48ee4e8d 100644 --- a/nms-patches/ChunkProviderServer.patch +++ b/nms-patches/ChunkProviderServer.patch @@ -84,7 +84,7 @@ ++i; } } -@@ -267,6 +291,40 @@ +@@ -267,6 +291,42 @@ return false; } @@ -112,12 +112,14 @@ + } + } + // Moved from unloadChunks above -+ chunk.removeEntities(); -+ if (save) { -+ this.saveChunk(chunk); ++ synchronized (this.chunkLoader) { ++ chunk.removeEntities(); ++ if (save) { ++ this.saveChunk(chunk); ++ } ++ this.chunks.remove(chunk.chunkKey); ++ this.lastChunk = null; + } -+ this.chunks.remove(chunk.chunkKey); -+ this.lastChunk = null; + return true; + } + // CraftBukkit end |