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
+1
View File
@@ -97,6 +97,7 @@ public:
BlockRotProfile rotations;
std::string pickingItem = name+BLOCK_ITEM_SUFFIX;
std::string scriptName = name.substr(name.find(':')+1);
std::string uiLayout = name;
uint inventorySize = 0;
struct {
+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());
}