fix: slow world saving
This commit is contained in:
parent
940d10ccd4
commit
ddee38681e
@ -750,7 +750,9 @@ void Chunks::save(Chunk* chunk) {
|
||||
chunk->flags.entities = true;
|
||||
}
|
||||
worldFiles->getRegions().put(
|
||||
chunk, json::to_binary(root, true)
|
||||
chunk,
|
||||
chunk->flags.entities ? json::to_binary(root, true)
|
||||
: std::vector<ubyte>()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user