From 73c34cb50744a0632f3374a3a04311f6661397d8 Mon Sep 17 00:00:00 2001 From: darkrose Date: Sun, 13 Oct 2013 22:43:19 +1000 Subject: [PATCH] more plant tweaks --- src/environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/environment.cpp b/src/environment.cpp index 73ddf34..e0efa8a 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -1101,7 +1101,8 @@ void ServerEnvironment::step(float dtime) */ if (n.getContent() == CONTENT_GRASS) { - if (p.Y > -1 && myrand()%600 == 0) { + int f = (600-p.Y)+10; + if (p.Y > -1 && myrand()%f == 0) { MapNode n_top = m_map->getNodeNoEx(p+v3s16(0,1,0)); if (n_top.getContent() == CONTENT_AIR && n_top.getLightBlend(getDayNightRatio()) >= 13) { v3f pp;