mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-09-27 22:30:22 +02:00
use global digilines.mcl and remove unused digilines.mtg
This commit is contained in:
parent
98c7db7f6a
commit
4397f69be9
5
init.lua
5
init.lua
|
@ -1,11 +1,10 @@
|
||||||
digilines = {}
|
digilines = {}
|
||||||
digilines.S = minetest.get_translator("digilines")
|
digilines.S = minetest.get_translator("digilines")
|
||||||
|
|
||||||
digilines.mtg = minetest.get_modpath("default")
|
|
||||||
digilines.mcl = minetest.get_modpath("mcl_core")
|
digilines.mcl = minetest.get_modpath("mcl_core")
|
||||||
|
|
||||||
-- sounds check
|
-- 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
|
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 insulated = "mesecons_insulated:insulated_off"
|
||||||
local gold_ingot = "default:gold_ingot"
|
local gold_ingot = "default:gold_ingot"
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_core") then
|
if digilines.mcl then
|
||||||
gold_ingot = "mcl_core:gold_ingot"
|
gold_ingot = "mcl_core:gold_ingot"
|
||||||
-- MCL dont support mesecons insulated
|
-- MCL dont support mesecons insulated
|
||||||
if not minetest.get_modpath("mesecons_insulated") then
|
if not minetest.get_modpath("mesecons_insulated") then
|
||||||
|
|
2
lcd.lua
2
lcd.lua
|
@ -345,7 +345,7 @@ local steel_ingot = "default:steel_ingot"
|
||||||
local glass = "default:glass"
|
local glass = "default:glass"
|
||||||
local lightstone = "mesecons_lightstone:lightstone_green_off"
|
local lightstone = "mesecons_lightstone:lightstone_green_off"
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_core") then
|
if digilines.mcl then
|
||||||
steel_ingot = "mcl_core:iron_ingot"
|
steel_ingot = "mcl_core:iron_ingot"
|
||||||
glass = "mcl_core:glass"
|
glass = "mcl_core:glass"
|
||||||
lightstone = "mesecons_lightstone:lightstone_off"
|
lightstone = "mesecons_lightstone:lightstone_off"
|
||||||
|
|
|
@ -68,7 +68,7 @@ minetest.register_node("digilines:lightsensor", {
|
||||||
local steel_ingot = "default:steel_ingot"
|
local steel_ingot = "default:steel_ingot"
|
||||||
local glass = "default:glass"
|
local glass = "default:glass"
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_core") then
|
if digilines.mcl then
|
||||||
steel_ingot = "mcl_core:iron_ingot"
|
steel_ingot = "mcl_core:iron_ingot"
|
||||||
glass = "mcl_core:glass"
|
glass = "mcl_core:glass"
|
||||||
end
|
end
|
||||||
|
|
2
rtc.lua
2
rtc.lua
|
@ -65,7 +65,7 @@ local steel_ingot = "default:steel_ingot"
|
||||||
local mese_crystal = "default:mese_crystal_fragment"
|
local mese_crystal = "default:mese_crystal_fragment"
|
||||||
local dye_black = "dye:black"
|
local dye_black = "dye:black"
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_core") then
|
if digilines.mcl then
|
||||||
steel_ingot = "mcl_core:iron_ingot"
|
steel_ingot = "mcl_core:iron_ingot"
|
||||||
mese_crystal = "mesecons:redstone"
|
mese_crystal = "mesecons:redstone"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user