Add sfinv support

This commit is contained in:
ezhh 2017-10-08 03:26:02 +01:00
parent 220164d587
commit 6f65446260
2 changed files with 15 additions and 0 deletions

View File

@ -1 +1,2 @@
unified_inventory?
sfinv?

View File

@ -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
})