Add home gui only if newer sethome functions available

This commit is contained in:
TenPlus1 2016-04-21 21:36:56 +01:00
parent b81b8aad8e
commit d866fc7f5d

View File

@ -178,7 +178,7 @@ end)
minetest.register_alias("inventory_plus:workbench", "default:wood")
-- Add Home GUI
if minetest.get_modpath("sethome") then
if minetest.get_modpath("sethome") and sethome then
print ("sethome found, adding home_gui to inventory plus")
dofile(minetest.get_modpath("inventory_plus") .. "/home_gui.lua")
end