Refactored tool efficiency handling

This fixes lots of bugs with things like wool, cobwebs, swords.
This commit is contained in:
Dylan K. Taylor
2017-12-12 12:42:33 +00:00
parent 99fe63b2a3
commit b903161a5d
7 changed files with 61 additions and 25 deletions

View File

@ -789,7 +789,7 @@ class Item implements ItemIds, \JsonSerializable{
return false;
}
public function getDestroySpeed(Block $block, Player $player){
public function getMiningEfficiency(Block $block) : float{
return 1;
}