implement water fog

This commit is contained in:
LabyStudio
2022-02-01 11:06:34 +01:00
parent a3c21b3727
commit cc3da60a6e
9 changed files with 27 additions and 19 deletions
@@ -35,7 +35,7 @@ window.Block = class {
}
shouldRenderFace(world, x, y, z, face) {
let typeId = world.getBlockAt(x + face.x, y + face.y, z + face.z);
let typeId = world.getBlockAtFace(x, y, z, face);
return typeId === 0 || Block.getById(typeId).isTransparent();
}