[ChunkLightmap] Temporary fix added for lighting bug.
This commit is contained in:
parent
104597a39d
commit
b86f8d719a
@ -91,7 +91,7 @@ void ChunkLightmap::updateTorchlight() {
|
||||
setTorchlight(surroundingNode.x, surroundingNode.y, surroundingNode.z, lightLevel - 1);
|
||||
|
||||
u16 block = m_chunk->getBlock(surroundingNode.x, surroundingNode.y, surroundingNode.z);
|
||||
if (!block/* || !Registry::getInstance().getBlock(block).isOpaque() */) { // FIXME
|
||||
if (!block || block == BlockType::Water || block == BlockType::Glass || block == BlockType::Flower/* || !Registry::getInstance().getBlock(block).isOpaque() */) { // FIXME
|
||||
m_lightBfsQueue.emplace(surroundingNode.x, surroundingNode.y, surroundingNode.z);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user