forked from minetest-mods/digilines
parent
8b73f9e11d
commit
a5e2f05d92
10
init.lua
10
init.lua
@ -64,19 +64,19 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- former submods
|
-- For minetest 0.4 support returned nil are also tested: ~= false
|
||||||
if minetest.is_yes(minetest.setting_get("digilines_enable_inventory") or true) then
|
if minetest.settings:get_bool("digilines_enable_inventory", true) ~= false then
|
||||||
dofile(modpath .. "/inventory.lua")
|
dofile(modpath .. "/inventory.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.is_yes(minetest.setting_get("digilines_enable_lcd") or true) then
|
if minetest.settings:get_bool("digilines_enable_lcd", true) ~= false then
|
||||||
dofile(modpath .. "/lcd.lua")
|
dofile(modpath .. "/lcd.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.is_yes(minetest.setting_get("digilines_enable_lightsensor") or true) then
|
if minetest.settings:get_bool("digilines_enable_lightsensor", true) ~= false then
|
||||||
dofile(modpath .. "/lightsensor.lua")
|
dofile(modpath .. "/lightsensor.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.is_yes(minetest.setting_get("digilines_enable_rtc") or true) then
|
if minetest.settings:get_bool("digilines_enable_rtc", true) ~= false then
|
||||||
dofile(modpath .. "/rtc.lua")
|
dofile(modpath .. "/rtc.lua")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user