mirror of
https://github.com/mt-mods/currency.git
synced 2025-02-16 18:32:23 +01:00
Replace deprecated 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
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")
|
||||
|
Reference in New Issue
Block a user