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

implement player attack cooldown

This commit is contained in:
p2r3
2025-08-22 17:54:41 +03:00
parent f197a19a07
commit 7d75125353
2 changed files with 12 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ typedef struct {
#endif
int8_t yaw;
int8_t pitch;
short grounded_y;
uint8_t grounded_y;
uint8_t health;
uint8_t hunger;
uint8_t hotbar;
@@ -86,6 +86,8 @@ typedef struct {
uint16_t craft_items[9];
uint8_t inventory_count[41];
uint8_t craft_count[9];
// 0x01 - attack cooldown
uint8_t flags;
} PlayerData;
typedef struct {