diff options
author | Hybrid Dog <ovvv@web.de> | 2017-06-18 12:25:20 +0200 |
---|---|---|
committer | Hybrid Dog <ovvv@web.de> | 2017-12-30 16:25:26 +0100 |
commit | ba2cd3d9b8f1100d9e05651bd3d836a322ba58b5 (patch) | |
tree | d15ab3124132140ced5c55ef8617cb26cd3a9d24 | |
parent | 1c0e3c72156d87ad3f6b4ba2c8d537a2f9b622c6 (diff) |
Use new setting functions
-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) |