Use new setting functions

This commit is contained in:
Hybrid Dog 2017-06-18 12:25:20 +02:00
parent 1c0e3c7215
commit ba2cd3d9b8
1 changed files with 5 additions and 4 deletions

View File

@ -2,13 +2,13 @@
-- --
-- This mod adds more types of trees to the game -- 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. -- and bas080's jungle trees mod.
-- --
-- Brought together into one mod and made L-systems compatible by Vanessa -- Brought together into one mod and made L-systems compatible by Vanessa
-- Ezekowitz. -- 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 -- latter having been tweaked by RealBadAngel, most other axioms/rules written
-- by RealBadAngel. -- by RealBadAngel.
-- --
@ -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
@ -224,7 +225,7 @@ function moretrees.grow_jungletree(pos)
local r2 = math.random(3) local r2 = math.random(3)
if r1 == 1 then if r1 == 1 then
moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_red" moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_red"
else else
moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_yellow" moretrees.jungletree_model.leaves2 = "moretrees:jungletree_leaves_yellow"
end end
moretrees.jungletree_model.leaves2_chance = math.random(25, 75) moretrees.jungletree_model.leaves2_chance = math.random(25, 75)