mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
fix block library typos
This commit is contained in:
parent
28648381f1
commit
b49075347a
1 changed files with 2 additions and 2 deletions
|
|
@ -682,7 +682,7 @@ static int l_get_field(lua::State* L) {
|
|||
return 0;
|
||||
}
|
||||
auto lx = x - cx * CHUNK_W;
|
||||
auto lz = z - cz * CHUNK_W;
|
||||
auto lz = z - cz * CHUNK_D;
|
||||
size_t voxelIndex = vox_index(lx, y, lz);
|
||||
|
||||
const auto& vox = chunk->voxels[voxelIndex];
|
||||
|
|
@ -751,7 +751,7 @@ static int l_set_field(lua::State* L) {
|
|||
auto cx = floordiv(x, CHUNK_W);
|
||||
auto cz = floordiv(z, CHUNK_D);
|
||||
auto lx = x - cx * CHUNK_W;
|
||||
auto lz = z - cz * CHUNK_W;
|
||||
auto lz = z - cz * CHUNK_D;
|
||||
auto chunk = blocks_agent::get_chunk(*level.chunks, cx, cz);
|
||||
if (chunk == nullptr || y < 0 || y >= CHUNK_H) {
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue