mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-11-14 06:10:30 +01:00
enable crate and builder only if default mod is available
This commit is contained in:
parent
e3d87eefc6
commit
544997535e
10
init.lua
10
init.lua
|
@ -12,8 +12,14 @@ if minetest.get_modpath("xpanes") then
|
|||
end
|
||||
|
||||
dofile(MP.."/common.lua")
|
||||
dofile(MP.."/builder.lua")
|
||||
dofile(MP.."/chest.lua")
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
-- only load builder and chest if the default mod is available
|
||||
-- the formspecs depend on it
|
||||
dofile(MP.."/builder.lua")
|
||||
dofile(MP.."/chest.lua")
|
||||
end
|
||||
|
||||
dofile(MP.."/plants.lua")
|
||||
dofile(MP.."/nodes.lua")
|
||||
dofile(MP.."/doors.lua")
|
||||
|
|
Loading…
Reference in New Issue
Block a user