explicitly handle running out of player slots

This commit is contained in:
p2r3
2025-08-27 15:31:09 +03:00
parent 035be84850
commit b7234ab31e
4 changed files with 14 additions and 1 deletions

View File

@@ -47,7 +47,10 @@ void handlePacket (int client_fd, int length, int packet_id, int state) {
uint8_t uuid[16];
char name[16];
if (cs_loginStart(client_fd, uuid, name)) break;
if (reservePlayerData(client_fd, uuid, name)) break;
if (reservePlayerData(client_fd, uuid, name)) {
recv_count = 0;
return;
}
if (sc_loginSuccess(client_fd, uuid, name)) break;
} else if (state == STATE_CONFIGURATION) {
if (cs_clientInformation(client_fd)) break;