From e87122e1101377b8d2eb2166870bd2ec7095b602 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 30 Jan 2015 23:33:58 +0000 Subject: [PATCH] Fix client chunk leak when preforming large block/chunk updates --- nms-patches/PlayerChunk.patch | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/nms-patches/PlayerChunk.patch b/nms-patches/PlayerChunk.patch index 8c13214cd0..a9e2154b94 100644 --- a/nms-patches/PlayerChunk.patch +++ b/nms-patches/PlayerChunk.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/PlayerChunk.java 2014-11-28 17:43:43.321707430 +0000 -+++ src/main/java/net/minecraft/server/PlayerChunk.java 2014-11-28 17:38:17.000000000 +0000 +--- ../work/decompile-8eb82bde//net/minecraft/server/PlayerChunk.java 2015-01-30 23:33:46.784237383 +0000 ++++ src/main/java/net/minecraft/server/PlayerChunk.java 2015-01-30 23:33:46.784237383 +0000 @@ -3,6 +3,11 @@ import com.google.common.collect.Lists; import java.util.List; @@ -93,12 +93,3 @@ this.b.remove(entityplayer); entityplayer.chunkCoordIntPairQueue.remove(this.location); if (this.b.isEmpty()) { -@@ -122,7 +169,7 @@ - if (this.dirtyCount == 64) { - i = this.location.x * 16; - j = this.location.z * 16; -- this.a((Packet) (new PacketPlayOutMapChunk(PlayerChunkMap.a(this.playerChunkMap).getChunkAt(this.location.x, this.location.z), false, this.f))); -+ this.a((Packet) (new PacketPlayOutMapChunk(PlayerChunkMap.a(this.playerChunkMap).getChunkAt(this.location.x, this.location.z), (this.f == 0xFFFF), this.f))); // CraftBukkit - send everything (including biome) if all sections flagged - - for (k = 0; k < 16; ++k) { - if ((this.f & 1 << k) != 0) {