more plant tweaks

This commit is contained in:
darkrose 2013-10-13 22:43:19 +10:00
parent 5e0e7a643d
commit 73c34cb507
1 changed files with 2 additions and 1 deletions

View File

@ -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;