mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
19 lines
1.3 KiB
Diff
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();
|