forked from mtcontrib/biome_lib
Replace deprecated methods:
- 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
parent
9cdcdcfe6b
commit
03970402cf
4
init.lua
4
init.lua
@ -66,7 +66,7 @@ local humidity_persistence = 0.5
|
|||||||
local humidity_scale = 250
|
local humidity_scale = 250
|
||||||
|
|
||||||
local time_scale = 1
|
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
|
if time_speed and time_speed > 0 then
|
||||||
time_scale = 72 / time_speed
|
time_scale = 72 / time_speed
|
||||||
@ -717,7 +717,7 @@ end
|
|||||||
|
|
||||||
-- Check for infinite stacks
|
-- 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
|
biome_lib.expect_infinite_stacks = false
|
||||||
else
|
else
|
||||||
biome_lib.expect_infinite_stacks = true
|
biome_lib.expect_infinite_stacks = true
|
||||||
|
Loading…
Reference in New Issue
Block a user