mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
block ui test
This commit is contained in:
parent
7e553efdec
commit
af7c828d73
17 changed files with 84 additions and 30 deletions
|
|
@ -420,6 +420,8 @@ 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());
|
||||
}
|
||||
blockUI->bind(blockinv, frontend, interaction.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue