Leaves: fixed decay

detected by phpstan level 4
This commit is contained in:
Dylan K. Taylor 2019-12-04 23:21:01 +00:00
parent 48e2473696
commit 7d89f91fea

View File

@ -76,7 +76,7 @@ class Leaves extends Transparent{
$visited[$index] = true;
$block = $this->pos->getWorld()->getBlock($pos);
if($pos instanceof Wood){ //type doesn't matter
if($block instanceof Wood){ //type doesn't matter
return true;
}