1
0
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:
BuckarooBanzay 2021-08-15 11:21:23 +02:00
parent e3d87eefc6
commit 544997535e

View File

@ -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")