mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-30 07:43:44 +01:00
beter smart_inventory integration
This commit is contained in:
parent
26212fb3e4
commit
a5b650285b
@ -286,12 +286,9 @@ armor.update_inventory = function(self, player)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if inv_mod == "smart_inventory" then
|
if inv_mod == "smart_inventory" then
|
||||||
local state = smart_inventory.smartfs.inv[name]
|
local state = smart_inventory.get_page_state("player", name)
|
||||||
if state then
|
if state then
|
||||||
local button = state:get("player_button")
|
state:get("update_hook"):submit()
|
||||||
if button then
|
|
||||||
button:submit()
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user