summaryrefslogtreecommitdiff
path: root/flowers.lua
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2015-01-04 12:01:08 +0000
committertenplus1 <kinsellaja@yahoo.com>2015-01-04 12:01:08 +0000
commit6e290bb2ae56acc9a6d8b7cc19e1f8576265c1c1 (patch)
tree9a69c55e16ac42a411f9c551178036458cdfbbac /flowers.lua
parenta6e82e0e091a2be928ad485f8b029ef4466d1f78 (diff)
Bugfix
Diffstat (limited to 'flowers.lua')
-rw-r--r--flowers.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/flowers.lua b/flowers.lua
index 1979599..0b340eb 100644
--- a/flowers.lua
+++ b/flowers.lua
@@ -18,7 +18,8 @@ minetest.register_abm({
if #minetest.find_nodes_in_area(pos0, pos1, "group:flora") > 3 then
local crystal = minetest.find_nodes_in_area(pos0, pos1, {"ethereal:crystalgrass"})
- if #crystal > 6 then
+ local frost = minetest.find_nodes_in_area(pos0, pos1, {"ethereal:frost_tree"})
+ if #crystal > 10 and #frost > 10 then
local ppos = crystal[1]
ppos.y = ppos.y - 1
local nod = minetest.get_node(ppos).name