Fix wrong condition for unloading mesh blocks
This commit is contained in:
parent
ed5bca22c7
commit
f67077b698
@ -497,7 +497,7 @@ void VoxelTerrain::unview_mesh_block(Vector3i bpos, bool mesh_flag, bool collisi
|
||||
}
|
||||
}
|
||||
|
||||
if (block->collision_viewers.get() == 0 && block->collision_viewers.get() == 0) {
|
||||
if (block->mesh_viewers.get() == 0 && block->collision_viewers.get() == 0) {
|
||||
unload_mesh_block(bpos);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user