diff --git a/include/globals.h b/include/globals.h index 2043f2b..78a675f 100644 --- a/include/globals.h +++ b/include/globals.h @@ -114,6 +114,7 @@ typedef struct { // 0x04 - sneaking // 0x08 - sprinting // 0x10 - eating, makes extra8 act as eating timer + // 0x20 - client not fully loaded uint8_t flags; } PlayerData; diff --git a/src/procedures.c b/src/procedures.c index d8dc5b7..f0dd8f6 100644 --- a/src/procedures.c +++ b/src/procedures.c @@ -1019,6 +1019,7 @@ void handleServerTick (int64_t time_since_last_tick) { // Update player events for (int i = 0; i < MAX_PLAYERS; i ++) { if (player_data[i].client_fd == -1) continue; + if (player_data[i].flags & 0x20) continue; // Send Keep Alive and Update Time packets sc_keepAlive(player_data[i].client_fd); sc_updateTime(player_data[i].client_fd, world_time);