aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains/mod.conf2
-rw-r--r--advtrains/p_mesecon_iface.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/mod.conf b/advtrains/mod.conf
index 027e08a..5808d1a 100644
--- a/advtrains/mod.conf
+++ b/advtrains/mod.conf
@@ -4,4 +4,4 @@ description=Core system for realistic trains in Minetest
author=orwell96
depends=serialize_lib
-optional_depends=mesecons,digtron
+optional_depends=mesecons,mesecons_switch,digtron
diff --git a/advtrains/p_mesecon_iface.lua b/advtrains/p_mesecon_iface.lua
index 0eef96a..33fcecd 100644
--- a/advtrains/p_mesecon_iface.lua
+++ b/advtrains/p_mesecon_iface.lua
@@ -1,7 +1,7 @@
-- p_mesecon_iface.lua
-- Mesecons interface by overriding the switch
-if not mesecon then return end
+if minetest.get_modpath("mesecons_switch") == nil then return end
minetest.override_item("mesecons_switch:mesecon_switch_off", {
groups = {