World/Block: remove useless blockLight accessor

This commit is contained in:
Matthias Schiffer 2018-07-22 16:59:18 +02:00
parent 2ed7f13268
commit 4e3a9736b6
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 1 additions and 5 deletions

View file

@ -62,7 +62,7 @@ static void addChunk(uint32_t image[DIM*DIM], uint8_t lightmap[2*DIM*DIM], size_
const World::Block &block = layer.blocks[x][z];
image[i] = htonl(block.getColor());
lightmap[2*i+1] = (1 - block.getBlockLight()/15.f)*192;
lightmap[2*i+1] = (1 - block.blockLight/15.f)*192;
}
}
}

View file

@ -47,10 +47,6 @@ struct Block {
Block(uint8_t id0, uint8_t data0, unsigned height0, uint8_t blockLight0, uint8_t skyLight0, uint8_t biome0)
: id(id0), data(data0), height(height0), blockLight(blockLight0), skyLight(skyLight0), biome(biome0) {}
uint8_t getBlockLight() const {
return blockLight;
}
uint32_t getColor() const;
};