From 9974e3d509157e3edd0c845a41c8da46b55abc4b Mon Sep 17 00:00:00 2001 From: ANAND Date: Sun, 15 Dec 2019 15:53:30 +0530 Subject: [PATCH] ctf_map_core: Make 'physics' an optional dependency --- mods/ctf/ctf_map/ctf_map_core/meta_helpers.lua | 4 ++++ mods/ctf/ctf_map/ctf_map_core/mod.conf | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_map/ctf_map_core/meta_helpers.lua b/mods/ctf/ctf_map/ctf_map_core/meta_helpers.lua index 34c344b..b5b9a50 100644 --- a/mods/ctf/ctf_map/ctf_map_core/meta_helpers.lua +++ b/mods/ctf/ctf_map/ctf_map_core/meta_helpers.lua @@ -1,3 +1,7 @@ +if not minetest.get_modpath("physics") then + error("Cannot find mod 'physics'!") +end + ---------- -- TIME -- ---------- diff --git a/mods/ctf/ctf_map/ctf_map_core/mod.conf b/mods/ctf/ctf_map/ctf_map_core/mod.conf index 643630d..3f6139b 100644 --- a/mods/ctf/ctf_map/ctf_map_core/mod.conf +++ b/mods/ctf/ctf_map/ctf_map_core/mod.conf @@ -1,3 +1,3 @@ name = ctf_map_core -depends = default, physics -optional_depends = ctf, ctf_match, ctf_stats, ctf_treasure, stairs, wool, irc +depends = default +optional_depends = ctf, ctf_match, ctf_stats, ctf_treasure, stairs, wool, irc, physics