[ChunkLightmap] Temporary fix added for lighting bug.

This commit is contained in:
Quentin Bazin 2019-01-19 12:46:07 +01:00
parent 104597a39d
commit b86f8d719a

View File

@ -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);
}
}