From e28342f959c36c358706cdbfd6e00fd3eef4227c Mon Sep 17 00:00:00 2001 From: SamB440 Date: Fri, 21 May 2021 00:43:07 +0100 Subject: [PATCH] MC-148809: Fix incorrect structure block data length --- ...crease-structure-block-data-length-t.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Spigot-Server-Patches/Fix-MC-148809-Increase-structure-block-data-length-t.patch diff --git a/Spigot-Server-Patches/Fix-MC-148809-Increase-structure-block-data-length-t.patch b/Spigot-Server-Patches/Fix-MC-148809-Increase-structure-block-data-length-t.patch new file mode 100644 index 0000000000..b17f987517 --- /dev/null +++ b/Spigot-Server-Patches/Fix-MC-148809-Increase-structure-block-data-length-t.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: SamB440 +Date: Fri, 21 May 2021 00:22:09 +0100 +Subject: [PATCH] Fix MC-148809: Increase structure block data length to 128 + + +diff --git a/src/main/java/net/minecraft/network/protocol/game/PacketPlayInStruct.java b/src/main/java/net/minecraft/network/protocol/game/PacketPlayInStruct.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/network/protocol/game/PacketPlayInStruct.java ++++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayInStruct.java +@@ -0,0 +0,0 @@ public class PacketPlayInStruct implements Packet { + this.f = new BlockPosition(MathHelper.clamp(packetdataserializer.readByte(), 0, 48), MathHelper.clamp(packetdataserializer.readByte(), 0, 48), MathHelper.clamp(packetdataserializer.readByte(), 0, 48)); + this.g = (EnumBlockMirror) packetdataserializer.a(EnumBlockMirror.class); + this.h = (EnumBlockRotation) packetdataserializer.a(EnumBlockRotation.class); +- this.i = packetdataserializer.e(12); ++ this.i = packetdataserializer.e(128); // Paper - Fix MC-148809, increase max character input to 128 + this.m = MathHelper.a(packetdataserializer.readFloat(), 0.0F, 1.0F); + this.n = packetdataserializer.j(); + byte b0 = packetdataserializer.readByte();