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