docs: Chunks.seekOrigin, Chunks.checkReplaceability

This commit is contained in:
MihailRis
2024-06-10 02:00:41 +03:00
parent 1bfd5ccad3
commit 2dfd2abc40
2 changed files with 16 additions and 2 deletions
+2 -1
View File
@@ -158,8 +158,9 @@ Chunk* Chunks::getChunkByVoxel(int32_t x, int32_t y, int32_t z) {
Chunk* Chunks::getChunk(int x, int z){
x -= ox;
z -= oz;
if (x < 0 || z < 0 || x >= int(w) || z >= int(d))
if (x < 0 || z < 0 || x >= static_cast<int>(w) || z >= static_cast<int>(d)) {
return nullptr;
}
return chunks[z * w + x].get();
}