fix loading wrong spawn chunks

This commit is contained in:
p2r3
2025-08-22 17:45:28 +03:00
parent e311b0cbe4
commit f197a19a07

View File

@@ -45,6 +45,8 @@ int getClientIndex (int client_fd) {
void resetPlayerData (PlayerData *player) { void resetPlayerData (PlayerData *player) {
player->health = 20; player->health = 20;
player->hunger = 20; player->hunger = 20;
player->x = 8;
player->z = 8;
player->y = -32767; player->y = -32767;
player->grounded_y = 0; player->grounded_y = 0;
for (int i = 0; i < 41; i ++) { for (int i = 0; i < 41; i ++) {