From 5eb240678eb64e8818a1233b71a453c2b64ae1c9 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 29 Jan 2024 22:06:35 +0300 Subject: [PATCH] BLOCK_VOID is an obstacle again --- src/voxels/Chunks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/voxels/Chunks.cpp b/src/voxels/Chunks.cpp index 88f34d69..8f83dafa 100644 --- a/src/voxels/Chunks.cpp +++ b/src/voxels/Chunks.cpp @@ -55,7 +55,7 @@ const AABB* Chunks::isObstacleAt(float x, float y, float z){ int iz = floor(z); voxel* v = get(ix,iy,iz); if (v == nullptr) - return nullptr; + return &contentIds->getBlockDef(0)->hitbox; const Block* def = contentIds->getBlockDef(v->id); if (def->obstacle) { const AABB& hitbox = def->rotatable