possible hud.open bug fix
This commit is contained in:
parent
ebb7cd98c5
commit
2783b0af7b
@ -538,6 +538,7 @@ void Hud::closeInventory() {
|
|||||||
exchangeSlotInv = nullptr;
|
exchangeSlotInv = nullptr;
|
||||||
inventoryOpen = false;
|
inventoryOpen = false;
|
||||||
inventoryView = nullptr;
|
inventoryView = nullptr;
|
||||||
|
secondInvView = nullptr;
|
||||||
secondUI = nullptr;
|
secondUI = nullptr;
|
||||||
|
|
||||||
for (auto& element : elements) {
|
for (auto& element : elements) {
|
||||||
|
|||||||
@ -46,7 +46,7 @@ static int l_open(lua::State* L) {
|
|||||||
}
|
}
|
||||||
return lua::pushinteger(L, hud->openInventory(
|
return lua::pushinteger(L, hud->openInventory(
|
||||||
layout,
|
layout,
|
||||||
level->inventories->get(invid),
|
lua::isnoneornil(L, 3) ? nullptr : level->inventories->get(invid),
|
||||||
playerInventory
|
playerInventory
|
||||||
)->getId());
|
)->getId());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user