mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-02 07:35:08 +02:00
fix sending wrong entity id to clients during login
This commit is contained in:
@@ -170,8 +170,7 @@ int sc_loginPlay (int client_fd) {
|
|||||||
writeVarInt(client_fd, 49 + sizeVarInt(MAX_PLAYERS));
|
writeVarInt(client_fd, 49 + sizeVarInt(MAX_PLAYERS));
|
||||||
writeByte(client_fd, 0x2B);
|
writeByte(client_fd, 0x2B);
|
||||||
// entity id
|
// entity id
|
||||||
uint32_t entity_id = getClientIndex(client_fd);
|
writeUint32(client_fd, client_fd);
|
||||||
send_all(client_fd, &entity_id, 4);
|
|
||||||
// hardcore
|
// hardcore
|
||||||
writeByte(client_fd, false);
|
writeByte(client_fd, false);
|
||||||
// dimensions
|
// dimensions
|
||||||
|
Reference in New Issue
Block a user