Block: Drop unnecessary parameters for ItemFactory::get()

This commit is contained in:
Dylan K. Taylor
2017-12-13 18:37:04 +00:00
parent 853411fa4f
commit 6abf880e44
20 changed files with 23 additions and 23 deletions

View File

@ -41,12 +41,12 @@ class Wheat extends Crops{
public function getDropsForCompatibleTool(Item $item) : array{
if($this->meta >= 0x07){
return [
ItemFactory::get(Item::WHEAT, 0, 1),
ItemFactory::get(Item::WHEAT),
ItemFactory::get(Item::WHEAT_SEEDS, 0, mt_rand(0, 3))
];
}else{
return [
ItemFactory::get(Item::WHEAT_SEEDS, 0, 1)
ItemFactory::get(Item::WHEAT_SEEDS)
];
}
}