mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
possible hud.open bug fix
This commit is contained in:
parent
ebb7cd98c5
commit
2783b0af7b
2 changed files with 2 additions and 1 deletions
|
|
@ -538,6 +538,7 @@ void Hud::closeInventory() {
|
|||
exchangeSlotInv = nullptr;
|
||||
inventoryOpen = false;
|
||||
inventoryView = nullptr;
|
||||
secondInvView = nullptr;
|
||||
secondUI = nullptr;
|
||||
|
||||
for (auto& element : elements) {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ static int l_open(lua::State* L) {
|
|||
}
|
||||
return lua::pushinteger(L, hud->openInventory(
|
||||
layout,
|
||||
level->inventories->get(invid),
|
||||
lua::isnoneornil(L, 3) ? nullptr : level->inventories->get(invid),
|
||||
playerInventory
|
||||
)->getId());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue