diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-01-09 14:36:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 14:36:57 -0500 |
commit | 324155f80519259fdf58f43604cecbf47bfb035e (patch) | |
tree | 0748e8f1cff5e1014b1c5079d63b33408b7ae3b0 | |
parent | ae53dc2e9bea32b2c145dba64c1cf3680d7e2fa6 (diff) | |
parent | e5524c007d2080a8c5d798c6a85ca2fbae4b4ab5 (diff) |
Merge pull request #41 from HybridDog/settingfix
Use new setting function to fix a warning
-rw-r--r-- | init.lua | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2,13 +2,13 @@ -- -- This mod adds more types of trees to the game -- --- Some of the node definitions and textures came from cisoun's conifers mod +-- Some of the node definitions and textures came from cisoun's conifers mod -- and bas080's jungle trees mod. -- -- Brought together into one mod and made L-systems compatible by Vanessa -- Ezekowitz. -- --- Firs and Jungle tree axioms/rules by Vanessa Ezekowitz, with the +-- Firs and Jungle tree axioms/rules by Vanessa Ezekowitz, with the -- latter having been tweaked by RealBadAngel, most other axioms/rules written -- by RealBadAngel. -- @@ -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 @@ -224,7 +225,7 @@ function moretrees.grow_jungletree(pos) local r2 = math.random(3) if r1 == 1 then moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_red" - else + else moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_yellow" end moretrees.jungletree_model.leaves2_chance = math.random(25, 75) |