Add sfinv support
This commit is contained in:
parent
220164d587
commit
6f65446260
@ -1 +1,2 @@
|
||||
unified_inventory?
|
||||
sfinv?
|
14
init.lua
14
init.lua
@ -259,3 +259,17 @@ if m_ui then
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- sfinv
|
||||
|
||||
sfinv.register_page("potions", {
|
||||
title = "Potions",
|
||||
get = function(self, player, context)
|
||||
local name = player:get_player_name()
|
||||
return sfinv.make_formspec(player, context,
|
||||
"label[0,0;Warp Potions]" ..
|
||||
get_formspec(name, true),
|
||||
true)
|
||||
end
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user