PlayerInventory & PlayerInventoryUI: Fixed inventory state saving

This commit is contained in:
Van
2026-03-30 21:06:09 +03:00
parent 8a0b5785ab
commit 584e710d5c
2 changed files with 7 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ PlayerInventoryUI:registerOnFormFieldActionMatch('%S+::%S+::item_button',functio
local playerName = player:get_player_name()
PlayerInventoryUI:setContex(playerName, paneType..'_pane_craft_selected_craft', craftName)
player:set_inventory_formspec(PlayerInventoryUI:getFormSpecString(playerName))
PlayerInventoryUI:showForm(playerName)
end)