mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-09-24 21:00:20 +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.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
|
||||
|
|
2
lcd.lua
2
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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user