mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
BLOCK_VOID is an obstacle again
This commit is contained in:
parent
04ab2839a1
commit
5eb240678e
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ const AABB* Chunks::isObstacleAt(float x, float y, float z){
|
||||||
int iz = floor(z);
|
int iz = floor(z);
|
||||||
voxel* v = get(ix,iy,iz);
|
voxel* v = get(ix,iy,iz);
|
||||||
if (v == nullptr)
|
if (v == nullptr)
|
||||||
return nullptr;
|
return &contentIds->getBlockDef(0)->hitbox;
|
||||||
const Block* def = contentIds->getBlockDef(v->id);
|
const Block* def = contentIds->getBlockDef(v->id);
|
||||||
if (def->obstacle) {
|
if (def->obstacle) {
|
||||||
const AABB& hitbox = def->rotatable
|
const AABB& hitbox = def->rotatable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue