mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
implement blocks data saving/loading
This commit is contained in:
parent
e84c79839c
commit
28d746f371
11 changed files with 107 additions and 15 deletions
|
|
@ -557,6 +557,8 @@ static int l_set_field(lua::State* L) {
|
|||
if (dst == nullptr) {
|
||||
dst = chunk->blocksMetadata.allocate(voxelIndex, dataStruct.size());
|
||||
}
|
||||
chunk->flags.unsaved = true;
|
||||
chunk->flags.blocksData = true;
|
||||
return set_field(L, dst, *field, index, dataStruct, value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue