diff options
author | Zach Brown <[email protected]> | 2017-04-22 01:16:45 -0500 |
---|---|---|
committer | Zach Brown <[email protected]> | 2017-04-22 01:16:45 -0500 |
commit | 2db4e57e4d907b01eb00f8af42a27939fb844ed2 (patch) | |
tree | 9826459422cda4da803ffd22ecf71bd1db93ce12 /Spigot-Server-Patches/0163-Raise-string-limit-for-packet-serialization.patch | |
parent | 9db28f00dbcc062955bb094894a0e7efe08f5ba9 (diff) | |
download | Paper-2db4e57e4d907b01eb00f8af42a27939fb844ed2.tar.gz Paper-2db4e57e4d907b01eb00f8af42a27939fb844ed2.zip |
Update bStats implementation
Diffstat (limited to 'Spigot-Server-Patches/0163-Raise-string-limit-for-packet-serialization.patch')
-rw-r--r-- | Spigot-Server-Patches/0163-Raise-string-limit-for-packet-serialization.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Spigot-Server-Patches/0163-Raise-string-limit-for-packet-serialization.patch b/Spigot-Server-Patches/0163-Raise-string-limit-for-packet-serialization.patch deleted file mode 100644 index 2a718f7ed0..0000000000 --- a/Spigot-Server-Patches/0163-Raise-string-limit-for-packet-serialization.patch +++ /dev/null @@ -1,27 +0,0 @@ -From a6297ac50d38e7ad1e986135d64dffcc4af39b5f Mon Sep 17 00:00:00 2001 -From: Aikar <[email protected]> -Date: Wed, 21 Sep 2016 23:54:20 -0400 -Subject: [PATCH] Raise string limit for packet serialization - -The default limit is possible to hit with 50 page books with color codes, causing clients to disconnect. - -Bump the limit up a hair to above currently seen sizes. - -diff --git a/src/main/java/net/minecraft/server/PacketDataSerializer.java b/src/main/java/net/minecraft/server/PacketDataSerializer.java -index 7a6619595..68e8c4671 100644 ---- a/src/main/java/net/minecraft/server/PacketDataSerializer.java -+++ b/src/main/java/net/minecraft/server/PacketDataSerializer.java -@@ -297,8 +297,8 @@ public class PacketDataSerializer extends ByteBuf { - public PacketDataSerializer a(String s) { - byte[] abyte = s.getBytes(Charsets.UTF_8); - -- if (abyte.length > 32767) { -- throw new EncoderException("String too big (was " + abyte.length + " bytes encoded, max " + 32767 + ")"); -+ if (abyte.length > 44767) { // Paper - raise limit a bit more as normal means can trigger this -+ throw new EncoderException("String too big (was " + s.length() + " bytes encoded, max " + 44767 + ")"); // Paper - } else { - this.d(abyte.length); - this.writeBytes(abyte); --- -2.12.0.windows.1 - |