improve lightning

This commit is contained in:
LabyStudio
2022-05-02 05:18:13 +02:00
parent 862a97f9e8
commit 24aed783fa
@@ -154,6 +154,11 @@ export default class BlockRenderer {
// Sum up the light levels
totalLightLevel += world.getTotalLightAt(x + offsetX, y + offsetY, z + offsetZ);
totalBlocks++;
} else {
// Count the block if it's on the same level
if (offsetY === 0) {
totalBlocks++;
}
}
}
}