add command homegui to show home formspec

Este commit está contenido en:
crabman77 2016-07-17 18:06:12 +02:00
padre 90f253d82d
commit aa945c0694
Se han modificado 1 ficheros con 7 adiciones y 0 borrados

Ver fichero

@ -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", {