Cleaned up non-trivial getDrops() stuff

This commit is contained in:
Dylan K. Taylor
2017-12-13 14:47:50 +00:00
parent 90eed14cd6
commit 717b36a983
5 changed files with 48 additions and 28 deletions

View File

@ -200,7 +200,7 @@ class Vine extends Flowable{
}
public function getDrops(Item $item) : array{
if($item->isShears()){
if($item->getBlockToolType() & BlockToolType::TYPE_SHEARS){
return $this->getDropsForCompatibleTool($item);
}