Grass: Avoid usage of meta

This commit is contained in:
Dylan K. Taylor 2019-02-27 13:03:23 +00:00
parent 9ad0ea85c7
commit 08673172c7

View File

@ -74,8 +74,8 @@ class Grass extends Solid{
$b = $this->level->getBlockAt($x, $y, $z);
if(
$b->getId() !== Block::DIRT or
$b->getMeta() === 1 or //coarse dirt
!($b instanceof Dirt) or
$b instanceof CoarseDirt or
$this->level->getFullLightAt($x, $y + 1, $z) < 4 or
$this->level->getBlockAt($x, $y + 1, $z)->getLightFilter() >= 2
){