mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:31:29 +01:00
25f3b50f6b
By: md_5 <git@md-5.net>
12 lines
645 B
Diff
12 lines
645 B
Diff
--- a/net/minecraft/network/protocol/game/PacketPlayInChat.java
|
|
+++ b/net/minecraft/network/protocol/game/PacketPlayInChat.java
|
|
@@ -25,7 +25,7 @@
|
|
}
|
|
|
|
public PacketPlayInChat(PacketDataSerializer packetdataserializer) {
|
|
- this.message = packetdataserializer.readUtf(256);
|
|
+ this.message = org.apache.commons.lang3.StringUtils.normalizeSpace(packetdataserializer.readUtf(256)); // CraftBukkit - see PlayerConnection
|
|
this.timeStamp = packetdataserializer.readInstant();
|
|
this.saltSignature = new MinecraftEncryption.b(packetdataserializer);
|
|
this.signedPreview = packetdataserializer.readBoolean();
|