From 544997535eb6662a6504cadffc63678ecf86f934 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sun, 15 Aug 2021 11:21:23 +0200 Subject: [PATCH] enable crate and builder only if default mod is available --- init.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 5388925..25314e4 100644 --- a/init.lua +++ b/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")