mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +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:
@ -66,7 +66,7 @@ abstract class Stem extends Crops{
|
||||
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [
|
||||
$this->getItem()->setCount(mt_rand(0, 2))
|
||||
$this->asItem()->setCount(mt_rand(0, 2))
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user