mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-23 16:27:02 +00:00
Fix sand crashing the game whilst creating a new world
This commit is contained in:
parent
82a95d6683
commit
660cb22e91
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue