mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2026-02-07 09:46:12 +01:00
Modified Chat packet for multiple versions
This commit is contained in:
@@ -28,7 +28,9 @@ public class PacketChatMessage implements PacketOut {
|
||||
public void encode(ByteMessage msg, Version version) {
|
||||
msg.writeString(jsonData);
|
||||
msg.writeByte(position.index);
|
||||
msg.writeUuid(sender);
|
||||
|
||||
if (version.moreOrEqual(Version.V1_16))
|
||||
msg.writeUuid(sender);
|
||||
}
|
||||
|
||||
public enum Position {
|
||||
|
||||
Reference in New Issue
Block a user