mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Refactored tool hierarchy
This commit is contained in:
@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\block;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\item\TieredTool;
|
||||
use pocketmine\item\Tool;
|
||||
|
||||
class Obsidian extends Solid{
|
||||
@ -51,7 +52,7 @@ class Obsidian extends Solid{
|
||||
}
|
||||
|
||||
public function getDrops(Item $item) : array{
|
||||
if($item->isPickaxe() >= Tool::TIER_DIAMOND){
|
||||
if($item->isPickaxe() >= TieredTool::TIER_DIAMOND){
|
||||
return parent::getDrops($item);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user