fix player entities desyncing on join sometimes

This commit is contained in:
p2r3
2025-09-13 20:06:25 +03:00
parent bad337a032
commit e3589a02f0
5 changed files with 43 additions and 21 deletions

View File

@@ -1178,6 +1178,18 @@ int sc_pickupItem (int client_fd, int collected, int collector, uint8_t count) {
return 0;
}
// C->S Player Loaded
int cs_playerLoaded (int client_fd) {
PlayerData *player;
if (getPlayerData(client_fd, &player)) return 1;
// Redirect handling to player join procedure
handlePlayerJoin(player);
return 0;
}
// S->C Registry Data (multiple packets) and Update Tags (configuration, multiple packets)
int sc_registries (int client_fd) {