From 660cb22e9137e6935fe78ecb28e74ecd49359c6d Mon Sep 17 00:00:00 2001 From: piebot <164795032+piebotc@users.noreply.github.com> Date: Fri, 20 Mar 2026 02:45:26 +0300 Subject: [PATCH] Fix sand crashing the game whilst creating a new world --- Minecraft.World/SandTile.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Minecraft.World/SandTile.cpp b/Minecraft.World/SandTile.cpp index 2d1a9a5c..eb273636 100644 --- a/Minecraft.World/SandTile.cpp +++ b/Minecraft.World/SandTile.cpp @@ -48,6 +48,12 @@ void SandTile::checkSlide(Level* level, int x, int y, int z) int x2 = x; int y2 = y; int z2 = z; + + if (level->isNew || !level->hasChunksAt(x - 1, y - 1, z - 1, x + 1, y + 1, z + 1)) + { + return; + } + if (y2 > 0 && isFree(level, x2, y2 - 1, z2)) { int r = 32;