summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Irwin <antumdeluge@gmail.com>2017-06-05 07:50:30 -0700
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-05 10:50:30 -0400
commit97e1c8b7f2bd3de0dfb343c2c875630d2313dc5f (patch)
tree7c8d4c43f72300f591daa6dad58f6f299a97657c
parent9cc1a78371c3276db66051ee5f6e0cc173c7cded (diff)
Replace deprecated method 'setting_getbool' with 'settings:get_bool' (#369)
-rw-r--r--technic/init.lua4
-rw-r--r--technic/machines/other/frames.lua2
-rw-r--r--technic/radiation.lua2
3 files changed, 4 insertions, 4 deletions
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"},