diff --git a/init.lua b/init.lua index ff17998..a0ea69c 100644 --- a/init.lua +++ b/init.lua @@ -1,11 +1,10 @@ digilines = {} digilines.S = minetest.get_translator("digilines") -digilines.mtg = minetest.get_modpath("default") digilines.mcl = minetest.get_modpath("mcl_core") -- sounds check -if digilines.mtg then digilines.sounds = default end +if minetest.get_modpath("default") then digilines.sounds = default end if digilines.mcl then digilines.sounds = mcl_sounds end @@ -67,7 +66,7 @@ local fiber = "mesecons_materials:fiber" local insulated = "mesecons_insulated:insulated_off" local gold_ingot = "default:gold_ingot" -if minetest.get_modpath("mcl_core") then +if digilines.mcl then gold_ingot = "mcl_core:gold_ingot" -- MCL dont support mesecons insulated if not minetest.get_modpath("mesecons_insulated") then diff --git a/lcd.lua b/lcd.lua index 54e775e..0faac6c 100644 --- a/lcd.lua +++ b/lcd.lua @@ -345,7 +345,7 @@ local steel_ingot = "default:steel_ingot" local glass = "default:glass" local lightstone = "mesecons_lightstone:lightstone_green_off" -if minetest.get_modpath("mcl_core") then +if digilines.mcl then steel_ingot = "mcl_core:iron_ingot" glass = "mcl_core:glass" lightstone = "mesecons_lightstone:lightstone_off" diff --git a/lightsensor.lua b/lightsensor.lua index c506be7..f97abb4 100644 --- a/lightsensor.lua +++ b/lightsensor.lua @@ -68,7 +68,7 @@ minetest.register_node("digilines:lightsensor", { local steel_ingot = "default:steel_ingot" local glass = "default:glass" -if minetest.get_modpath("mcl_core") then +if digilines.mcl then steel_ingot = "mcl_core:iron_ingot" glass = "mcl_core:glass" end diff --git a/rtc.lua b/rtc.lua index 6cfcf8e..a7a422a 100644 --- a/rtc.lua +++ b/rtc.lua @@ -65,7 +65,7 @@ local steel_ingot = "default:steel_ingot" local mese_crystal = "default:mese_crystal_fragment" local dye_black = "dye:black" -if minetest.get_modpath("mcl_core") then +if digilines.mcl then steel_ingot = "mcl_core:iron_ingot" mese_crystal = "mesecons:redstone" end