diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-29 11:15:48 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-29 11:15:48 -0400 |
commit | 00d822fb3dfcffb50a2b4811acfa3c50f3dffa90 (patch) | |
tree | e8d2a036cd873659a7f12d5f0fda41b17931d0b8 | |
parent | fix possible run condition (diff) | |
download | minecraftvulkan-00d822fb3dfcffb50a2b4811acfa3c50f3dffa90.tar.gz minecraftvulkan-00d822fb3dfcffb50a2b4811acfa3c50f3dffa90.tar.bz2 minecraftvulkan-00d822fb3dfcffb50a2b4811acfa3c50f3dffa90.zip |
undo last commit
Diffstat (limited to '')
-rw-r--r-- | src/chunk.cpp | 2 |
1 files changed, 0 insertions, 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; } |