mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-17 15:39:30 +08:00
Also guard sendTitlePart behind a protocol version check.
This commit is contained in:
parent
d5047b6665
commit
41f66c7c04
@ -404,6 +404,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
throw new NullPointerException("value");
|
||||
}
|
||||
|
||||
if (this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
GsonComponentSerializer serializer = ProtocolUtils.getJsonChatSerializer(this
|
||||
.getProtocolVersion());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user