add chunk 'entities' flag

This commit is contained in:
MihailRis
2024-07-05 23:26:17 +03:00
parent c8666910ce
commit f4d3e62b3f
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -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));
}