Replace deprecated 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
parent
3ee673da21
commit
9e9b1bec42
2
init.lua
2
init.lua
@ -16,7 +16,7 @@ minetest.log("info", "[Currency] "..S("Safe Loaded!"))
|
||||
dofile(modpath.."/crafting.lua")
|
||||
minetest.log("info", "[Currency] "..S("Crafting Loaded!"))
|
||||
|
||||
if minetest.setting_getbool("creative_mode") then
|
||||
if minetest.settings:get_bool("creative_mode") then
|
||||
minetest.log("info", "[Currency] "..S("Creative mode in use, skipping basic income."))
|
||||
else
|
||||
dofile(modpath.."/income.lua")
|
||||
|
Loading…
x
Reference in New Issue
Block a user