mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add chunk 'entities' flag
This commit is contained in:
parent
c8666910ce
commit
f4d3e62b3f
4 changed files with 9 additions and 3 deletions
|
|
@ -66,6 +66,7 @@ std::shared_ptr<Chunk> ChunksStorage::create(int x, int z) {
|
|||
|
||||
if (auto map = regions.fetchEntities(chunk->x, chunk->z)) {
|
||||
level->entities->loadEntities(std::move(map));
|
||||
chunk->flags.entities = true;
|
||||
}
|
||||
|
||||
chunk->flags.loaded = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue