mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add chunk 'entities' flag
This commit is contained in:
parent
c8666910ce
commit
f4d3e62b3f
4 changed files with 9 additions and 3 deletions
|
|
@ -717,7 +717,7 @@ void Chunks::save(Chunk* chunk) {
|
|||
list.put(level->entities->serialize(entity));
|
||||
}
|
||||
if (!entities.empty()) {
|
||||
chunk->flags.unsaved = true;
|
||||
chunk->flags.entities = true;
|
||||
}
|
||||
worldFiles->getRegions().put(chunk, json::to_binary(root, true));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue