mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
CoralFan: fixed coralType not being initialized
This commit is contained in:
parent
0a23e91329
commit
1714e2fd35
@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\item;
|
||||
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\block\utils\CoralType;
|
||||
use pocketmine\block\utils\CoralTypeTrait;
|
||||
use pocketmine\block\VanillaBlocks;
|
||||
use pocketmine\data\bedrock\CoralTypeIdMap;
|
||||
@ -34,6 +35,7 @@ final class CoralFan extends Item{
|
||||
use CoralTypeTrait;
|
||||
|
||||
public function __construct(private ItemIdentifierFlattened $identifierFlattened){
|
||||
$this->coralType = CoralType::TUBE();
|
||||
parent::__construct($this->identifierFlattened, VanillaBlocks::CORAL_FAN()->getName());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user