mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Item: Removed protected block field, items should now override getBlock()
This commit is contained in:
@ -28,7 +28,10 @@ use pocketmine\block\BlockFactory;
|
||||
|
||||
class WheatSeeds extends Item{
|
||||
public function __construct(int $meta = 0){
|
||||
$this->block = BlockFactory::get(Block::WHEAT_BLOCK);
|
||||
parent::__construct(self::WHEAT_SEEDS, $meta, "Wheat Seeds");
|
||||
}
|
||||
|
||||
public function getBlock() : Block{
|
||||
return BlockFactory::get(Block::WHEAT_BLOCK);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user