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:
@ -38,10 +38,13 @@ class Banner extends Item{
|
||||
public const TAG_PATTERN_NAME = TileBanner::TAG_PATTERN_NAME;
|
||||
|
||||
public function __construct(int $meta = 0){
|
||||
$this->block = BlockFactory::get(Block::STANDING_BANNER);
|
||||
parent::__construct(self::BANNER, $meta, "Banner");
|
||||
}
|
||||
|
||||
public function getBlock() : Block{
|
||||
return BlockFactory::get(Block::STANDING_BANNER);
|
||||
}
|
||||
|
||||
public function getMaxStackSize() : int{
|
||||
return 16;
|
||||
}
|
||||
|
Reference in New Issue
Block a user