mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +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);
|
reader.skip(size);
|
||||||
auto inv = std::make_shared<Inventory>(0, 0);
|
auto inv = std::make_shared<Inventory>(0, 0);
|
||||||
inv->deserialize(map);
|
inv->deserialize(map);
|
||||||
inventories[index] = inv;
|
inventories[index] = std::move(inv);
|
||||||
}
|
}
|
||||||
return inventories;
|
return inventories;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldRegions::put(Chunk* chunk, std::vector<ubyte> entitiesData) {
|
void WorldRegions::put(Chunk* chunk, std::vector<ubyte> entitiesData) {
|
||||||
|
if (generatorTestMode) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
assert(chunk != nullptr);
|
assert(chunk != nullptr);
|
||||||
if (!chunk->flags.lighted) {
|
if (!chunk->flags.lighted) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue