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
1 changed files with 8 additions and 2 deletions

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