summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2016-03-10 19:46:12 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2016-03-10 19:47:48 +0000
commitc126d6101e8268f6d0691a4a07dc2c928a62a47a (patch)
treefafce54a36025cb66935ec324b2ab6ba6078d991
parentdd016e7135dec2ae6d8163a307b9705fa379a4ae (diff)
downloadcraftbukkit-c126d6101e8268f6d0691a4a07dc2c928a62a47a.tar
craftbukkit-c126d6101e8268f6d0691a4a07dc2c928a62a47a.tar.gz
craftbukkit-c126d6101e8268f6d0691a4a07dc2c928a62a47a.tar.lz
craftbukkit-c126d6101e8268f6d0691a4a07dc2c928a62a47a.tar.xz
craftbukkit-c126d6101e8268f6d0691a4a07dc2c928a62a47a.zip
Backport a bug fix from the pre-release
A mistake in the buffer size calculation caused the buffer for chunk packets to be around 16 times the size they should have been.
-rw-r--r--nms-patches/DataPaletteBlock.patch8
1 files changed, 8 insertions, 0 deletions
diff --git a/nms-patches/DataPaletteBlock.patch b/nms-patches/DataPaletteBlock.patch
index d761b41d..16339942 100644
--- a/nms-patches/DataPaletteBlock.patch
+++ b/nms-patches/DataPaletteBlock.patch
@@ -23,3 +23,11 @@
}
}
+@@ -117,6 +131,6 @@
+ public int a() {
+ int i = this.b.b();
+
+- return 1 + this.c.a() + PacketDataSerializer.a(i) + i * 8;
++ return 1 + this.c.a() + PacketDataSerializer.a(i) + this.b.a().length * 8; // CraftBukkit - Backport fix, remove on update
+ }
+ }