mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Fixed flower pot accepting any block
This commit is contained in:
parent
89cc449808
commit
071067effb
@ -138,14 +138,16 @@ class FlowerPot extends Flowable{
|
|||||||
|
|
||||||
$this->setPlant(null);
|
$this->setPlant(null);
|
||||||
$this->position->getWorld()->setBlock($this->position, $this);
|
$this->position->getWorld()->setBlock($this->position, $this);
|
||||||
|
return true;
|
||||||
|
}elseif($this->isValidPlant($plant)){
|
||||||
|
$this->setPlant($plant);
|
||||||
|
$item->pop();
|
||||||
|
$this->position->getWorld()->setBlock($this->position, $this);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setPlant($plant);
|
return false;
|
||||||
$item->pop();
|
|
||||||
$this->position->getWorld()->setBlock($this->position, $this);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDropsForCompatibleTool(Item $item) : array{
|
public function getDropsForCompatibleTool(Item $item) : array{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user