forked from mtcontrib/moretrees
Use new setting functions
This commit is contained in:
parent
1c0e3c7215
commit
ba2cd3d9b8
3
init.lua
3
init.lua
|
@ -51,7 +51,8 @@ end
|
||||||
|
|
||||||
-- infinite stacks checking
|
-- 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
|
moretrees.expect_infinite_stacks = false
|
||||||
else
|
else
|
||||||
moretrees.expect_infinite_stacks = true
|
moretrees.expect_infinite_stacks = true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user