mirror of
https://notabug.org/TenPlus1/protector.git
synced 2024-12-05 03:03:48 +01:00
only add protected doors/chest if default minetest game found
This commit is contained in:
parent
53cadb1ada
commit
90ceaf134f
6
init.lua
6
init.lua
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user