Fix Player#chat for 1.19.3 (#8684)

This commit is contained in:
Jake Potrebic 2022-12-16 09:15:21 -08:00
parent 4567f41500
commit deea75d745

View File

@ -122,9 +122,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ if (msg.startsWith("/")) {
+ this.getHandle().connection.handleCommand(msg);
+ } else {
+ // TODO text filtering
+ final PlayerChatMessage playerChatMessage = PlayerChatMessage.system(msg).withResult(new net.minecraft.network.chat.ChatDecorator.ModernResult(Component.literal(msg), true, false));
+ // TODO chat decorating
+ this.getHandle().connection.chat(msg, PlayerChatMessage.system(msg), false);
+ // TODO text filtering
+ this.getHandle().connection.chat(msg, playerChatMessage, false);
+ }
+ }
+ // Paper end