aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Level.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Level.h')
-rw-r--r--Minecraft.World/Level.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Minecraft.World/Level.h b/Minecraft.World/Level.h
index eb750aff..2be87472 100644
--- a/Minecraft.World/Level.h
+++ b/Minecraft.World/Level.h
@@ -16,7 +16,12 @@ using namespace std;
// 4J Stu - This value should be big enough that we don't get any crashes causes by memory overwrites,
// however it does seem way too large for what is actually needed. Needs further investigation
+#ifdef MINECRAFT_SERVER_BUILD
+// fixes a crash when 8+ players are present
+#define LEVEL_CHUNKS_TO_UPDATE_MAX (32*32*8)
+#else
#define LEVEL_CHUNKS_TO_UPDATE_MAX (19*19*8)
+#endif
class Vec3;
class ChunkSource;