mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update generator-test-mode behaviour
This commit is contained in:
parent
6a2d17eaf5
commit
390944fa78
1 changed files with 4 additions and 1 deletions
|
|
@ -147,12 +147,15 @@ static ChunkInventoriesMap load_inventories(const ubyte* src, uint32_t size) {
|
|||
reader.skip(size);
|
||||
auto inv = std::make_shared<Inventory>(0, 0);
|
||||
inv->deserialize(map);
|
||||
inventories[index] = inv;
|
||||
inventories[index] = std::move(inv);
|
||||
}
|
||||
return inventories;
|
||||
}
|
||||
|
||||
void WorldRegions::put(Chunk* chunk, std::vector<ubyte> entitiesData) {
|
||||
if (generatorTestMode) {
|
||||
return;
|
||||
}
|
||||
assert(chunk != nullptr);
|
||||
if (!chunk->flags.lighted) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue