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:
parent
1c0e3c7215
commit
ba2cd3d9b8
3
init.lua
3
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user