mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Water render fix, minor refactor, README.md update
This commit is contained in:
parent
e437cc99ce
commit
26935473a3
4 changed files with 4 additions and 35 deletions
|
|
@ -252,7 +252,7 @@ bool BlocksRenderer::isOpen(int x, int y, int z, ubyte group) const {
|
|||
if (id == BLOCK_VOID)
|
||||
return false;
|
||||
const Block& block = *Block::blocks[id];
|
||||
if (block.drawGroup != group) {
|
||||
if (block.drawGroup != group && block.lightPassing) {
|
||||
return true;
|
||||
}
|
||||
return !id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue