Merge branch 'main' into lua_audio

This commit is contained in:
MihailRis 2024-03-05 19:47:17 +03:00
commit aac3ab74fa

View File

@ -55,8 +55,12 @@ const AABB* Chunks::isObstacleAt(float x, float y, float z){
int iz = floor(z);
voxel* v = get(ix, iy, iz);
if (v == nullptr) {
static const AABB empty;
return ∅
if (iy >= CHUNK_H) {
return nullptr;
} else {
static const AABB empty;
return ∅
}
}
const Block* def = contentIds->getBlockDef(v->id);
if (def->obstacle) {