mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Leaves: fixed decay
detected by phpstan level 4
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user