mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
fix: slow world saving
This commit is contained in:
parent
5fa6b14f05
commit
6ff90bfef3
1 changed files with 3 additions and 1 deletions
|
|
@ -750,7 +750,9 @@ void Chunks::save(Chunk* chunk) {
|
||||||
chunk->flags.entities = true;
|
chunk->flags.entities = true;
|
||||||
}
|
}
|
||||||
worldFiles->getRegions().put(
|
worldFiles->getRegions().put(
|
||||||
chunk, json::to_binary(root, true)
|
chunk,
|
||||||
|
chunk->flags.entities ? json::to_binary(root, true)
|
||||||
|
: std::vector<ubyte>()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue