aboutsummaryrefslogtreecommitdiff
path: root/advtrains/p_mesecon_iface.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/p_mesecon_iface.lua')
-rw-r--r--advtrains/p_mesecon_iface.lua2
1 files changed, 1 insertions, 1 deletions
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 = {