Merge pull request #3 from AntumDeluge/settings

Replace deprecated method 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
Vanessa Ezekowitz 2017-05-18 05:43:05 -04:00 committed by GitHub
commit 7060243f74

View File

@ -12,7 +12,7 @@ else
S = function(s) return s end
end
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
ilights.expect_infinite_stacks = false
else
ilights.expect_infinite_stacks = true