Coarse is now a state of Dirt, instead of a separate block

This commit is contained in:
Dylan K. Taylor
2021-05-21 21:36:49 +01:00
parent df260034cd
commit 24405b63c1
7 changed files with 31 additions and 54 deletions

View File

@ -70,7 +70,7 @@ class Grass extends Opaque{
$b = $this->pos->getWorld()->getBlockAt($x, $y, $z);
if(
!($b instanceof Dirt) or
$b instanceof CoarseDirt or
$b->isCoarse() or
$this->pos->getWorld()->getFullLightAt($x, $y + 1, $z) < 4 or
$this->pos->getWorld()->getBlockAt($x, $y + 1, $z)->getLightFilter() >= 2
){