mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
fix fatal error on invalid item id in inventory
This commit is contained in:
parent
77b4382577
commit
180dd5051b
4 changed files with 27 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue