fix water lightning

This commit is contained in:
LabyStudio
2022-02-02 15:38:15 +01:00
parent 010d883273
commit c5fd75de47
5 changed files with 32 additions and 14 deletions
@@ -1,9 +1,7 @@
window.Block = class {
static blocks = new Map();
static lightOpacity = [];
static create() {
Block.STONE = new BlockStone(1, 0);
Block.GRASS = new BlockGrass(2, 1);
@@ -22,9 +20,6 @@ window.Block = class {
// Register block
Block.blocks.set(id, this);
Block.lightOpacity[id] = this.isSolid() ? 255 : 0;
Block.lightOpacity[0] = 0;
}
getId() {