block ui test

This commit is contained in:
MihailRis
2024-02-16 14:45:46 +03:00
parent 7e553efdec
commit af7c828d73
17 changed files with 84 additions and 30 deletions
+4
View File
@@ -12,6 +12,7 @@
#include "../world/World.h"
#include "../maths/voxmaths.h"
#include "../lighting/Lightmap.h"
#include "../items/Inventories.h"
#include "../typedefs.h"
ChunksStorage::ChunksStorage(Level* level) : level(level) {
@@ -60,6 +61,9 @@ std::shared_ptr<Chunk> ChunksStorage::create(int x, int z) {
auto invs = wfile->fetchInventories(chunk->x, chunk->z);
chunk->setBlockInventories(std::move(invs));
chunk->setLoaded(true);
for(auto& entry : chunk->inventories) {
level->inventories->store(entry.second);
}
verifyLoadedChunk(level->content->getIndices(), chunk.get());
}