mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-14 05:20:12 +02:00
Modified Chat packet for multiple versions
This commit is contained in:
parent
5af7b9e2fc
commit
0527937bf0
@ -28,6 +28,8 @@ public class PacketChatMessage implements PacketOut {
|
||||
public void encode(ByteMessage msg, Version version) {
|
||||
msg.writeString(jsonData);
|
||||
msg.writeByte(position.index);
|
||||
|
||||
if (version.moreOrEqual(Version.V1_16))
|
||||
msg.writeUuid(sender);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user