aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.lua4
-rw-r--r--crafting.lua2
-rw-r--r--init.lua2
-rw-r--r--stairsplus/init.lua2
4 files changed, 5 insertions, 5 deletions
diff --git a/config.lua b/config.lua
index da5cd6e..8d49c3b 100644
--- a/config.lua
+++ b/config.lua
@@ -8,7 +8,7 @@ Licensed under the zlib license. See LICENSE.md for more information.
moreblocks.config = {}
local function getbool_default(setting, default)
- local value = minetest.setting_getbool(setting)
+ local value = minetest.settings:get_bool(setting)
if value == nil then
value = default
end
@@ -21,7 +21,7 @@ local function setting(settingtype, name, default)
getbool_default("moreblocks." .. name, default)
else
moreblocks.config[name] =
- minetest.setting_get("moreblocks." .. name) or default
+ minetest.settings:get("moreblocks." .. name) or default
end
end
diff --git a/crafting.lua b/crafting.lua
index 88862b7..8741c53 100644
--- a/crafting.lua
+++ b/crafting.lua
@@ -454,7 +454,7 @@ minetest.register_craft({
}
})
-if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
+if minetest.settings:get_bool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
minetest.register_craft({
output = "moreblocks:circular_saw",
recipe = {
diff --git a/init.lua b/init.lua
index c7fde52..c12f5e0 100644
--- a/init.lua
+++ b/init.lua
@@ -32,6 +32,6 @@ dofile(modpath .. "/redefinitions.lua")
dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/aliases.lua")
-if minetest.setting_getbool("log_mods") then
+if minetest.settings:get_bool("log_mods") then
minetest.log("action", S("[moreblocks] loaded."))
end
diff --git a/stairsplus/init.lua b/stairsplus/init.lua
index 598f21c..5cd415c 100644
--- a/stairsplus/init.lua
+++ b/stairsplus/init.lua
@@ -15,7 +15,7 @@ stairsplus.expect_infinite_stacks = false
stairsplus.shapes_list = {}
if not minetest.get_modpath("unified_inventory")
-and minetest.setting_getbool("creative_mode") then
+and minetest.settings:get_bool("creative_mode") then
stairsplus.expect_infinite_stacks = true
end