mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-11-05 18:00:28 +01:00
Don't generate tree ferns without a trunk.
This commit is contained in:
parent
f91caae9bd
commit
54b116525a
|
@ -22,6 +22,7 @@ abstract_ferns.grow_tree_fern = function(pos)
|
||||||
if (size > 5) then
|
if (size > 5) then
|
||||||
size = 10 - size
|
size = 10 - size
|
||||||
end
|
end
|
||||||
|
size = size + 1
|
||||||
local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)]
|
local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)]
|
||||||
|
|
||||||
local i = 1
|
local i = 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user