mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Block: Rename getItem() to asItem()
this has clearer meaning and is less likely to collide with other things.
This commit is contained in:
@ -82,7 +82,7 @@ class NetherWartPlant extends Flowable{
|
||||
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [
|
||||
$this->getItem()->setCount($this->age === 3 ? mt_rand(2, 4) : 1)
|
||||
$this->asItem()->setCount($this->age === 3 ? mt_rand(2, 4) : 1)
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user