mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Added missing properties for several blocks
This commit is contained in:
@ -23,6 +23,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\block;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\item\ItemFactory;
|
||||
|
||||
class Tripwire extends Flowable{
|
||||
|
||||
protected $id = self::TRIPWIRE;
|
||||
@ -34,4 +37,10 @@ class Tripwire extends Flowable{
|
||||
public function getName() : string{
|
||||
return "Tripwire";
|
||||
}
|
||||
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [
|
||||
ItemFactory::get(Item::STRING)
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user