PosAndLook packet for different evrsions

This commit is contained in:
Nanit 2021-10-30 13:47:23 +03:00
parent a70a538ae5
commit 7df4db9e10

View File

@ -49,8 +49,13 @@ public class PacketPlayerPositionAndLook implements PacketOut {
msg.writeDouble(z);
msg.writeFloat(yaw);
msg.writeFloat(pitch);
if (version.less(Version.V1_9)) {
msg.writeBoolean(false); // On ground
} else {
msg.writeByte(flags);
msg.writeVarInt(teleportId);
}
}
}