mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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;
|
$visited[$index] = true;
|
||||||
|
|
||||||
$block = $this->pos->getWorld()->getBlock($pos);
|
$block = $this->pos->getWorld()->getBlock($pos);
|
||||||
if($pos instanceof Wood){ //type doesn't matter
|
if($block instanceof Wood){ //type doesn't matter
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user