add command homegui to show home formspec

This commit is contained in:
crabman77 2016-07-17 18:06:12 +02:00
부모 90f253d82d
커밋 aa945c0694
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -422,6 +422,13 @@ minetest.register_chatcommand("setpit", {
end,
})
minetest.register_chatcommand("homegui", {
description = "Show home formspec",
privs = {home=true},
func = function (name, params)
h2omes.show_formspec_home(name)
end,
})
if (minetest.get_modpath("unified_inventory")) then
unified_inventory.register_button("home_formspec", {