mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
PackedIce: fixed dropping without silk touch, closes #2789
This commit is contained in:
parent
0c3b136a8d
commit
97deadc59f
@ -23,6 +23,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
use pocketmine\item\Item;
|
||||||
|
|
||||||
class PackedIce extends Solid{
|
class PackedIce extends Solid{
|
||||||
|
|
||||||
protected $id = self::PACKED_ICE;
|
protected $id = self::PACKED_ICE;
|
||||||
@ -46,4 +48,8 @@ class PackedIce extends Solid{
|
|||||||
public function getToolType() : int{
|
public function getToolType() : int{
|
||||||
return BlockToolType::TYPE_PICKAXE;
|
return BlockToolType::TYPE_PICKAXE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDropsForCompatibleTool(Item $item) : array{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user