BLOCK_VOID is an obstacle again

This commit is contained in:
MihailRis 2024-01-29 22:06:35 +03:00
parent 04ab2839a1
commit 5eb240678e

View File

@ -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