3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-25 07:40:06 +01:00
Paper/patches/server-unmapped/0737-Fix-MC-148809-Increase-structure-block-data-length-t.patch
2021-06-11 14:02:28 +02:00

20 Zeilen
1.4 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: SamB440 <sam@islandearth.net>
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 2e19ac6b4e27c5d1bbefd5e99f8298650919d917..de3c33ae24e38471ab34d905f07992cb75dc0789 100644
--- a/src/main/java/net/minecraft/network/protocol/game/PacketPlayInStruct.java
+++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayInStruct.java
@@ -43,7 +43,7 @@ public class PacketPlayInStruct implements Packet<PacketListenerPlayIn> {
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();