2021-06-11 14:02:28 +02:00
|
|
|
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
|
|
|
|
|
2021-06-15 04:59:31 +02:00
|
|
|
Fixed in 1.17
|
2021-06-11 14:02:28 +02:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java b/src/main/java/net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java
|
|
|
|
index 4c797dd82bb1989861e350a7e628eb847b58bbd8..4792aafd8d992cd64d05f8bbef5cbf30988949ed 100644
|
|
|
|
--- a/src/main/java/net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java
|
|
|
|
+++ b/src/main/java/net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java
|
|
|
|
@@ -43,7 +43,7 @@ public class ServerboundSetStructureBlockPacket implements Packet<ServerGamePack
|
|
|
|
this.size = new BlockPos(Mth.clamp(buf.readByte(), 0, 48), Mth.clamp(buf.readByte(), 0, 48), Mth.clamp(buf.readByte(), 0, 48));
|
|
|
|
this.mirror = (Mirror) buf.readEnum(Mirror.class);
|
|
|
|
this.rotation = (Rotation) buf.readEnum(Rotation.class);
|
|
|
|
- this.data = buf.readUtf(12);
|
|
|
|
+ this.data = buf.readUtf(128); // Paper - Fix MC-148809, increase max character input to 128
|
|
|
|
this.integrity = Mth.clamp(buf.readFloat(), 0.0F, 1.0F);
|
|
|
|
this.seed = buf.readVarLong();
|
|
|
|
byte b0 = buf.readByte();
|