Use new setting functions

This commit is contained in:
Hybrid Dog 2017-06-18 12:25:20 +02:00
parent 1c0e3c7215
commit ba2cd3d9b8
1 changed files with 5 additions and 4 deletions

View File

@ -51,7 +51,8 @@ end
-- infinite stacks checking
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
moretrees.expect_infinite_stacks = false
else
moretrees.expect_infinite_stacks = true