summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2015-01-30 23:33:58 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2015-01-30 23:33:58 +0000
commite87122e1101377b8d2eb2166870bd2ec7095b602 (patch)
tree1858ba7c2224fe7e0a880c9b58a2625f90becad4 /nms-patches
parent5c49acdcc99e7199c030df034d1a71b648283515 (diff)
downloadcraftbukkit-e87122e1101377b8d2eb2166870bd2ec7095b602.tar
craftbukkit-e87122e1101377b8d2eb2166870bd2ec7095b602.tar.gz
craftbukkit-e87122e1101377b8d2eb2166870bd2ec7095b602.tar.lz
craftbukkit-e87122e1101377b8d2eb2166870bd2ec7095b602.tar.xz
craftbukkit-e87122e1101377b8d2eb2166870bd2ec7095b602.zip
Fix client chunk leak when preforming large block/chunk updates
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/PlayerChunk.patch13
1 files changed, 2 insertions, 11 deletions
diff --git a/nms-patches/PlayerChunk.patch b/nms-patches/PlayerChunk.patch
index 8c13214c..a9e2154b 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) {