1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

support common miscellaneous packets

This commit is contained in:
p2r3
2025-08-22 13:41:19 +03:00
parent 9fd9ede50d
commit 6fc5d07699
3 changed files with 28 additions and 6 deletions

View File

@@ -651,6 +651,13 @@ int cs_setPlayerRotation (int client_fd, float *yaw, float *pitch, uint8_t *on_g
return 0;
}
int cs_setPlayerMovementFlags (int client_fd, uint8_t *on_ground) {
*on_ground = readByte(client_fd) & 0x01;
return 0;
}
// C->S Set Held Item (serverbound)
int cs_setHeldItem (int client_fd) {