diff --git a/technic/init.lua b/technic/init.lua index 4464082..0d97319 100644 --- a/technic/init.lua +++ b/technic/init.lua @@ -5,7 +5,7 @@ local load_start = os.clock() technic = rawget(_G, "technic") or {} -technic.creative_mode = minetest.setting_getbool("creative_mode") +technic.creative_mode = minetest.settings:get_bool("creative_mode") local modpath = minetest.get_modpath("technic") @@ -47,7 +47,7 @@ dofile(modpath.."/tools/init.lua") -- Aliases for legacy node/item names dofile(modpath.."/legacy.lua") -if minetest.setting_getbool("log_mods") then +if minetest.settings:get_bool("log_mods") then print(S("[Technic] Loaded in %f seconds"):format(os.clock() - load_start)) end diff --git a/technic/machines/other/frames.lua b/technic/machines/other/frames.lua index 2d630a2..5459289 100644 --- a/technic/machines/other/frames.lua +++ b/technic/machines/other/frames.lua @@ -3,7 +3,7 @@ local S = technic.getter frames = {} -local infinite_stacks = minetest.setting_getbool("creative_mode") and minetest.get_modpath("unified_inventory") == nil +local infinite_stacks = minetest.settings:get_bool("creative_mode") and minetest.get_modpath("unified_inventory") == nil local frames_pos = {} diff --git a/technic/radiation.lua b/technic/radiation.lua index 6a93483..67fee96 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -344,7 +344,7 @@ local function dmg_abm(pos, node) end end -if minetest.setting_getbool("enable_damage") then +if minetest.settings:get_bool("enable_damage") then minetest.register_abm({ label = "Radiation damage", nodenames = {"group:radioactive"},