update generator-test-mode behaviour
This commit is contained in:
parent
2bd10b2456
commit
6796b12414
@ -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…
x
Reference in New Issue
Block a user