From 071897746d52339340875782b6a7ad504219387c Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 10 Mar 2016 19:46:12 +0000 Subject: [PATCH] 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. By: Thinkofdeath --- paper-server/nms-patches/DataPaletteBlock.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-server/nms-patches/DataPaletteBlock.patch b/paper-server/nms-patches/DataPaletteBlock.patch index d761b41d68..1633994290 100644 --- a/paper-server/nms-patches/DataPaletteBlock.patch +++ b/paper-server/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 + } + }