virtual inventory fix

This commit is contained in:
MihailRis
2024-02-20 18:39:36 +03:00
parent 539a79c22c
commit 052ad45a6f
2 changed files with 0 additions and 9 deletions
-2
View File
@@ -447,8 +447,6 @@ void Hud::openInventory(glm::ivec3 block, UiDocument* doc, std::shared_ptr<Inven
}
openInventory();
if (blockinv == nullptr) {
Events::toggleCursor();
abort();
blockinv = level->inventories->createVirtual(blockUI->getSlotsCount());
}
level->chunks->getChunkByVoxel(block.x, block.y, block.z)->setUnsaved(true);