mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Leaf log search is type agnostic
any wood type will do
This commit is contained in:
@ -40,7 +40,6 @@ class Leaves extends Transparent{
|
||||
public const DARK_OAK = 1;
|
||||
|
||||
protected $id = self::LEAVES;
|
||||
protected $woodType = self::WOOD;
|
||||
|
||||
public function __construct(int $meta = 0){
|
||||
$this->setDamage($meta);
|
||||
@ -76,7 +75,8 @@ class Leaves extends Transparent{
|
||||
}
|
||||
$visited[$index] = true;
|
||||
|
||||
if($pos->getId() === $this->woodType){
|
||||
$id = $pos->getId();
|
||||
if($id === Block::WOOD or $id === Block::WOOD2){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user