Replace deprecated 'setting_getbool' with 'settings:get_bool'

This commit is contained in:
AntumDeluge 2017-05-12 18:54:11 -07:00
parent 3ee673da21
commit 9e9b1bec42

@ -16,7 +16,7 @@ minetest.log("info", "[Currency] "..S("Safe Loaded!"))
dofile(modpath.."/crafting.lua") dofile(modpath.."/crafting.lua")
minetest.log("info", "[Currency] "..S("Crafting Loaded!")) 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.")) minetest.log("info", "[Currency] "..S("Creative mode in use, skipping basic income."))
else else
dofile(modpath.."/income.lua") dofile(modpath.."/income.lua")