mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-13 21:20:12 +02:00
PosAndLook packet for different evrsions
This commit is contained in:
parent
a70a538ae5
commit
7df4db9e10
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user