mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix blocks render at the top of the world
This commit is contained in:
parent
95b9b346ac
commit
8214f1bd09
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ private:
|
|||
|
||||
// Does block allow to see other blocks sides (is it transparent)
|
||||
bool isOpen(const glm::ivec3& pos, const Block& def, const Variant& variant) const {
|
||||
if (pos.y >= CHUNK_H) {
|
||||
return true;
|
||||
}
|
||||
const auto& vox = voxelsBuffer->pickBlock(
|
||||
chunk->x * CHUNK_W + pos.x, pos.y, chunk->z * CHUNK_D + pos.z
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue