sfinv - minor details, depends, sync upstream
This commit is contained in:
parent
9e5b80293e
commit
e0e3d6daaf
@ -139,6 +139,11 @@ function sfinv.set_page(player, pagename)
|
|||||||
sfinv.set_player_inventory_formspec(player, context)
|
sfinv.set_player_inventory_formspec(player, context)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function sfinv.get_page(player)
|
||||||
|
local context = sfinv.contexts[player:get_player_name()]
|
||||||
|
return context and context.page or sfinv.get_homepage_name(player)
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
if sfinv.enabled then
|
if sfinv.enabled then
|
||||||
sfinv.set_player_inventory_formspec(player)
|
sfinv.set_player_inventory_formspec(player)
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
name = sfinv
|
name = sfinv
|
||||||
|
depends = default
|
||||||
optional_depends = sethome
|
optional_depends = sethome
|
Loading…
x
Reference in New Issue
Block a user