mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-07-04 17:20:44 +02:00
Use new minetest.settings
This commit is contained in:
8
init.lua
8
init.lua
@ -65,18 +65,18 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- former submods
|
-- former submods
|
||||||
if minetest.is_yes(minetest.setting_get("digilines_enable_inventory") or true) then
|
if minetest.settings:get_bool("digilines_enable_inventory", true) 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) 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) 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) then
|
||||||
dofile(modpath .. "/rtc.lua")
|
dofile(modpath .. "/rtc.lua")
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user