Merge pull request #41 from HybridDog/settingfix

Use new setting function to fix a warning
This commit is contained in:
Vanessa Dannenberg 2018-01-09 14:36:57 -05:00 committed by GitHub
commit 324155f805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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