1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

spawn players at terrain height level

This commit is contained in:
p2r3
2025-08-12 13:07:42 +03:00
parent d2409ec0f5
commit 3b9ca68a57
4 changed files with 21 additions and 7 deletions

View File

@@ -7,6 +7,7 @@
#include "globals.h"
#include "varnum.h"
#include "packets.h"
#include "tools.h"
static uint64_t htonll (uint64_t value) {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
@@ -144,9 +145,7 @@ int reservePlayerData (int client_fd, char *uuid) {
if (empty) {
player_data[i].client_fd = client_fd;
memcpy(player_data[i].uuid, uuid, 16);
player_data[i].x = 8;
player_data[i].y = 80;
player_data[i].z = 8;
player_data[i].y = -32767;
return 0;
}
}