craftbukkit/nms-patches/net/minecraft/network/protocol/game/PacketPlayInChat.patch

12 lines
645 B
Diff
Raw Normal View History

2021-04-07 15:03:29 +10:00
--- a/net/minecraft/network/protocol/game/PacketPlayInChat.java
+++ b/net/minecraft/network/protocol/game/PacketPlayInChat.java
2022-06-08 02:00:00 +10:00
@@ -25,7 +25,7 @@
2021-06-11 15:00:00 +10:00
}
2021-04-07 15:03:29 +10:00
2021-06-11 15:00:00 +10:00
public PacketPlayInChat(PacketDataSerializer packetdataserializer) {
2021-11-22 09:00:00 +11:00
- this.message = packetdataserializer.readUtf(256);
+ this.message = org.apache.commons.lang3.StringUtils.normalizeSpace(packetdataserializer.readUtf(256)); // CraftBukkit - see PlayerConnection
2022-06-08 02:00:00 +10:00
this.timeStamp = packetdataserializer.readInstant();
this.saltSignature = new MinecraftEncryption.b(packetdataserializer);
this.signedPreview = packetdataserializer.readBoolean();