recode mojang lightning
This commit is contained in:
@@ -2,6 +2,8 @@ window.Block = class {
|
||||
|
||||
static blocks = new Map();
|
||||
|
||||
static lightOpacity = [];
|
||||
|
||||
static create() {
|
||||
Block.STONE = new BlockStone(1, 0);
|
||||
Block.GRASS = new BlockGrass(2, 1);
|
||||
@@ -20,6 +22,7 @@ window.Block = class {
|
||||
|
||||
// Register block
|
||||
Block.blocks.set(id, this);
|
||||
Block.lightOpacity[id] = this.isSolid() ? 255 : 0;
|
||||
}
|
||||
|
||||
getId() {
|
||||
|
||||
Reference in New Issue
Block a user