From c126d6101e8268f6d0691a4a07dc2c928a62a47a Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 10 Mar 2016 19:46:12 +0000 Subject: 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. --- nms-patches/DataPaletteBlock.patch | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + } + } -- cgit v1.2.3