mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix chunk meshes refresh in some cases
This commit is contained in:
parent
6cccb3876b
commit
9e6ff82e88
2 changed files with 3 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ static int l_seek_origin(lua::State* L) {
|
|||
auto z = lua::tointeger(L, 3);
|
||||
const auto& level = require_level();
|
||||
const auto& vox = blocks_agent::require(*level.chunks, x, y, z);
|
||||
auto& def = indices->blocks.require(vox.id);
|
||||
const auto& def = indices->blocks.require(vox.id);
|
||||
return lua::pushivec_stack(
|
||||
L, blocks_agent::seek_origin(*level.chunks, {x, y, z}, def, vox.state)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue