use global digilines.mcl and remove unused digilines.mtg

This commit is contained in:
Freeman 2023-11-26 19:33:55 +01:00
parent 98c7db7f6a
commit 4397f69be9
4 changed files with 5 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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