Merge pull request #8 from AntumDeluge/settings

Replace deprecated 'setting_getbool' with 'settings:get_bool'
master
Vanessa Ezekowitz 2017-06-04 18:54:52 -04:00 committed by GitHub
commit c176de6cb2
1 changed files with 1 additions and 1 deletions

View File

@ -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")