mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 16:29:40 +00:00
Leaves: use instanceof Wood instead of legacy ID checks
This commit is contained in:
parent
a2f42a7016
commit
d51ca0b655
@ -80,8 +80,7 @@ class Leaves extends Transparent{
|
||||
}
|
||||
$visited[$index] = true;
|
||||
|
||||
$id = $pos->getId();
|
||||
if($id === Block::WOOD or $id === Block::WOOD2){
|
||||
if($pos instanceof Wood){ //type doesn't matter
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user