1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-12-28 11:40:20 +01:00

Use new setting functions

This commit is contained in:
Hybrid Dog 2017-06-18 12:25:20 +02:00
parent 1c0e3c7215
commit ba2cd3d9b8

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