fix fatal error on invalid item id in inventory

This commit is contained in:
MihailRis 2025-12-16 00:17:51 +03:00
parent 77b4382577
commit 180dd5051b
4 changed files with 27 additions and 2 deletions

View file

@ -128,6 +128,7 @@ std::shared_ptr<Chunk> GlobalChunks::create(int x, int z, bool lighting) {
chunk->flags.loaded = true;
for (auto& entry : chunk->inventories) {
entry.second->check(indices);
level.inventories->store(entry.second);
}
}