Fixed block-pick on crops giving the crop block itself

This commit is contained in:
Dylan K. Taylor
2017-11-03 12:17:38 +00:00
parent 42ed03fd02
commit 451f5d0cd7
8 changed files with 33 additions and 3 deletions

View File

@ -425,6 +425,14 @@ class Block extends Position implements BlockIds, Metadatable{
];
}
/**
* Returns the item that players will equip when middle-clicking on this block.
* @return Item
*/
public function getPickedItem() : Item{
return ItemFactory::get($this->getItemId(), $this->getVariant());
}
/**
* Returns the time in ticks which the block will fuel a furnace for.
* @return int