summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-05-18 05:42:55 -0400
committerGitHub <noreply@github.com>2017-05-18 05:42:55 -0400
commit7f54d95f31abef1d163b2c0d252b3cc37d77146c (patch)
tree288af412b2d1de63f7698fe1b475d27db4fb7bd8
parent9cdcdcfe6b9538c4f6daaa79c5e65f786f9577fa (diff)
parent03970402cf9429e507361e26415eea723ad728a5 (diff)
Merge pull request #6 from AntumDeluge/settings
Replace deprecated methods
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 5cb6202..cb23eb7 100644
--- a/init.lua
+++ b/init.lua
@@ -66,7 +66,7 @@ local humidity_persistence = 0.5
local humidity_scale = 250
local time_scale = 1
-local time_speed = tonumber(minetest.setting_get("time_speed"))
+local time_speed = tonumber(minetest.settings:get("time_speed"))
if time_speed and time_speed > 0 then
time_scale = 72 / time_speed
@@ -717,7 +717,7 @@ end
-- Check for infinite stacks
-if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then
+if minetest.get_modpath("unified_inventory") or not minetest.settings:get_bool("creative_mode") then
biome_lib.expect_infinite_stacks = false
else
biome_lib.expect_infinite_stacks = true