Addition of Coarse Dirt (#1396)

This commit is contained in:
Sandertv
2017-09-23 23:25:03 +02:00
committed by Dylan K. Taylor
parent e1d10f595a
commit 6e961ae897
2 changed files with 9 additions and 1 deletions

View File

@ -83,6 +83,7 @@ class Grass extends Solid{
$vector->z = mt_rand($this->z - 1, $this->z + 1);
if(
$this->level->getBlockIdAt($vector->x, $vector->y, $vector->z) !== Block::DIRT or
$this->level->getBlockDataAt($vector->x, $vector->y, $vector->z) === 1 or
$this->level->getFullLightAt($vector->x, $vector->y + 1, $vector->z) < 4 or
BlockFactory::$lightFilter[$this->level->getBlockIdAt($vector->x, $vector->y + 1, $vector->z)] >= 3
){