3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Also guard sendTitlePart behind a protocol version check.

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-10-15 10:16:34 -04:00
Ursprung d5047b6665
Commit 41f66c7c04

Datei anzeigen

@ -404,6 +404,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
throw new NullPointerException("value"); throw new NullPointerException("value");
} }
if (this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) < 0) {
return;
}
GsonComponentSerializer serializer = ProtocolUtils.getJsonChatSerializer(this GsonComponentSerializer serializer = ProtocolUtils.getJsonChatSerializer(this
.getProtocolVersion()); .getProtocolVersion());