Make mesecons_switch a proper optional dependency (H#175)
parent
5d372b1cf1
commit
99e619a2e5
|
@ -4,4 +4,4 @@ description=Core system for realistic trains in Minetest
|
||||||
author=orwell96
|
author=orwell96
|
||||||
|
|
||||||
depends=serialize_lib
|
depends=serialize_lib
|
||||||
optional_depends=mesecons,digtron
|
optional_depends=mesecons,mesecons_switch,digtron
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
-- p_mesecon_iface.lua
|
-- p_mesecon_iface.lua
|
||||||
-- Mesecons interface by overriding the switch
|
-- 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", {
|
minetest.override_item("mesecons_switch:mesecon_switch_off", {
|
||||||
groups = {
|
groups = {
|
||||||
|
|
Loading…
Reference in New Issue