undo last commit
This commit is contained in:
parent
0a5a72b8fe
commit
00d822fb3d
1 changed files with 0 additions and 2 deletions
|
@ -232,7 +232,6 @@ xe::Model* Chunk::getMesh() {
|
|||
}
|
||||
|
||||
uint8_t Chunk::getBlock(int32_t x, int32_t y, int32_t z) {
|
||||
if(!generated) return INVALID;
|
||||
if(y > 256) return AIR;
|
||||
if(y < 0) return INVALID;
|
||||
int chunkX = gridX;
|
||||
|
@ -264,7 +263,6 @@ uint8_t Chunk::getBlock(int32_t x, int32_t y, int32_t z) {
|
|||
}
|
||||
|
||||
void Chunk::setBlock(int32_t x, int32_t y, int32_t z, uint8_t block) {
|
||||
if(!generated) return;
|
||||
int index = x + (z * 16) + (y * 256);
|
||||
cubes[index] = block;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue