forked from EXTERNAL/bareiron
fix player entities desyncing on join sometimes
This commit is contained in:
@@ -21,6 +21,7 @@ int cs_chat (int client_fd);
|
||||
int cs_interact (int client_fd);
|
||||
int cs_playerInput (int client_fd);
|
||||
int cs_playerCommand (int client_fd);
|
||||
int cs_playerLoaded (int client_fd);
|
||||
|
||||
// Clientbound packets
|
||||
int sc_statusResponse (int client_fd);
|
||||
|
@@ -15,6 +15,7 @@ void resetPlayerData (PlayerData *player);
|
||||
int reservePlayerData (int client_fd, uint8_t *uuid, char* name);
|
||||
int getPlayerData (int client_fd, PlayerData **output);
|
||||
void handlePlayerDisconnect (int client_fd);
|
||||
void handlePlayerJoin (PlayerData* player);
|
||||
void disconnectClient (int *client_fd, int cause);
|
||||
int givePlayerItem (PlayerData *player, uint16_t item, uint8_t count);
|
||||
void spawnPlayer (PlayerData *player);
|
||||
|
Reference in New Issue
Block a user