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

@@ -3,7 +3,10 @@
#include <stdint.h>
#define chunk_size 8
uint32_t getChunkHash (short x, short z);
int getHeightAt (int rx, int rz, int _x, int _z, uint32_t chunk_hash);
uint8_t getBlockAt (int x, int y, int z);
void writeChunkSection (int client_fd, int _x, int _z, int i);
#endif