Make mesecons_switch a proper optional dependency (H#175)

master
Blockhead 2021-03-30 10:16:43 +02:00 committed by orwell96
parent 5d372b1cf1
commit 99e619a2e5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 = {