Fix inconsistent commands

This commit is contained in:
md_5 2021-06-08 14:18:54 +10:00
parent 3797d93e36
commit fae895ac11
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -1,7 +1,11 @@
--- a/net/minecraft/network/protocol/game/PacketPlayInChat.java --- a/net/minecraft/network/protocol/game/PacketPlayInChat.java
+++ b/net/minecraft/network/protocol/game/PacketPlayInChat.java +++ b/net/minecraft/network/protocol/game/PacketPlayInChat.java
@@ -1,3 +1,4 @@ @@ -20,7 +20,7 @@
+// mc-dev import
package net.minecraft.network.protocol.game;
import java.io.IOException; @Override
public void a(PacketDataSerializer packetdataserializer) throws IOException {
- this.a = packetdataserializer.e(256);
+ this.a = org.apache.commons.lang3.StringUtils.normalizeSpace(packetdataserializer.e(256)); // CraftBukkit - see PlayerConnection
}
@Override