Refactored tool hierarchy

This commit is contained in:
Dylan K. Taylor
2017-11-24 10:36:31 +00:00
parent 3beccc47cd
commit 2088a43c56
71 changed files with 218 additions and 742 deletions

View File

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\item\TieredTool;
use pocketmine\item\Tool;
class Emerald extends Solid{
@ -47,7 +48,7 @@ class Emerald extends Solid{
}
public function getDrops(Item $item) : array{
if($item->isPickaxe() >= Tool::TIER_IRON){
if($item->isPickaxe() >= TieredTool::TIER_IRON){
return parent::getDrops($item);
}