mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Leaves: fixed decay
detected by phpstan level 4
This commit is contained in:
parent
48e2473696
commit
7d89f91fea
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user