Fix inconsistent commands

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-06-08 14:18:54 +10:00
parent ee04dc8508
commit 023eff1b0e

View file

@ -1,7 +1,11 @@
--- a/net/minecraft/network/protocol/game/PacketPlayInChat.java
+++ b/net/minecraft/network/protocol/game/PacketPlayInChat.java
@@ -1,3 +1,4 @@
+// mc-dev import
package net.minecraft.network.protocol.game;
@@ -20,7 +20,7 @@
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