Block: Rename getItem() to asItem()

this has clearer meaning and is less likely to collide with other things.
This commit is contained in:
Dylan K. Taylor
2019-02-24 10:23:40 +00:00
parent ff35736bf9
commit 0bd1c1529e
7 changed files with 10 additions and 10 deletions

View File

@ -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))
];
}
}