implement fall damage

This commit is contained in:
p2r3
2025-08-21 15:07:49 +03:00
parent 2a0d465ad7
commit 05f17399f5
6 changed files with 67 additions and 18 deletions

View File

@@ -237,6 +237,8 @@ int reservePlayerData (int client_fd, uint8_t *uuid, char *name) {
player_data[i].client_fd = client_fd;
memcpy(player_data[i].uuid, uuid, 16);
memcpy(player_data[i].name, name, 16);
player_data[i].health = 20;
player_data[i].hunger = 20;
player_data[i].y = -32767;
return 0;
}