From 00d822fb3dfcffb50a2b4811acfa3c50f3dffa90 Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Thu, 29 Sep 2022 11:15:48 -0400 Subject: [PATCH] undo last commit --- src/chunk.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/chunk.cpp b/src/chunk.cpp index cc99b24..41f8014 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -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; }