mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Item: Removed protected block field, items should now override getBlock()
This commit is contained in:
@ -28,9 +28,11 @@ use pocketmine\block\BlockFactory;
|
||||
|
||||
class Redstone extends Item{
|
||||
public function __construct(int $meta = 0){
|
||||
$this->block = BlockFactory::get(Block::REDSTONE_WIRE);
|
||||
parent::__construct(self::REDSTONE, $meta, "Redstone");
|
||||
}
|
||||
|
||||
public function getBlock() : Block{
|
||||
return BlockFactory::get(Block::REDSTONE_WIRE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user