undo last commit

This commit is contained in:
tylermurphy534 2022-09-29 11:15:48 -04:00
parent 0a5a72b8fe
commit 00d822fb3d

View file

@ -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;
}