PaperMC/patches/server-remapped/Fix-MC-148809-Increase-structure-block-data-length-t.patch
MiniDigger | Martin 95d25d98e8 Move patches around
2021-06-11 14:02:28 +02:00

19 lines
1.3 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/ServerboundSetStructureBlockPacket.java b/src/main/java/net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java
+++ b/src/main/java/net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java
@@ -0,0 +0,0 @@ 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();