implement torch block and block lightning

This commit is contained in:
LabyStudio
2022-02-13 02:54:57 +01:00
parent 77fd18af31
commit 7858e98ffa
14 changed files with 293 additions and 47 deletions
@@ -99,7 +99,7 @@ window.ChunkSection = class {
getTotalLightAt(x, y, z) {
let index = y << 8 | z << 4 | x;
let skyLight = this.skyLight[index];
let skyLight = this.skyLight[index] - this.world.skylightSubtracted;
let blockLight = this.blockLight[index];
if (blockLight > skyLight) {
skyLight = blockLight;