master
crazyginger72 2014-08-23 15:51:09 -04:00
parent 93e6de0097
commit 8f5c2e2578
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ function default.grow_tree(data, a, pos, is_apple_tree, seed)
for y_area = -1, 2 do
for z_area = -2, 2 do
if math.random(1,10) ~= 3 then --randomize leaves
local area_l = a:index(pos.x+x_area, pos.y+tree_h+y_area, pos.z+z_area) --sets area for leaves
local area_l = a:index(pos.x+x_area, pos.y+hight+y_area-1, pos.z+z_area) --sets area for leaves
if data[area_l] ~= c_air or data[area_l] ~= c_ignore then --sets if not air or ignore
if is_apple_tree == true and math.random(1, 100) <= 10 then --randomize apples
data[area_l] = c_apple --add apples now