only add protected doors/chest if default minetest game found

This commit is contained in:
TenPlus1 2020-02-27 21:25:03 +00:00
parent 53cadb1ada
commit 90ceaf134f

@ -689,7 +689,11 @@ minetest.register_node("protector:display_node", {
})
dofile(MP .. "/doors_chest.lua")
-- only add protected doors and chest if running default minetest
if minetest.registered_items["default:steel_ingot"] then
dofile(MP .. "/doors_chest.lua")
end
dofile(MP .. "/pvp.lua")
dofile(MP .. "/admin.lua")
dofile(MP .. "/tool.lua")