mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Merge branch 'main' into heightmaps
This commit is contained in:
commit
bf9f81a98c
74 changed files with 1885 additions and 1782 deletions
|
|
@ -664,8 +664,8 @@ void Chunks::save(Chunk* chunk) {
|
|||
)
|
||||
);
|
||||
auto entities = level->entities->getAllInside(aabb);
|
||||
auto root = dynamic::create_map();
|
||||
root->put("data", level->entities->serialize(entities));
|
||||
auto root = dv::object();
|
||||
root["data"] = level->entities->serialize(entities);
|
||||
if (!entities.empty()) {
|
||||
level->entities->despawn(std::move(entities));
|
||||
chunk->flags.entities = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue