mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +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;
|
||||
|
||||
$id = $pos->getId();
|
||||
if($id === Block::WOOD or $id === Block::WOOD2){
|
||||
if($pos instanceof Wood){ //type doesn't matter
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user