implement mob despawning

This commit is contained in:
p2r3
2025-08-22 14:30:26 +03:00
parent 4da773b943
commit 1c4e433a32
2 changed files with 20 additions and 0 deletions

View File

@@ -22,6 +22,8 @@
#define MAX_PLAYERS 16
// How many mobs to allocate memory for
#define MAX_MOBS (MAX_PLAYERS)
// Manhattan distance at which mobs despawn
#define MOB_DESPAWN_DISTANCE 256
// Server game mode: 0 - survival; 1 - creative; 2 - adventure; 3 - spectator
#define GAMEMODE 0
// Max render distance, determines how many chunks to send