CoralFan: fixed coralType not being initialized

This commit is contained in:
Dylan K. Taylor 2022-07-05 14:07:34 +01:00
parent 0a23e91329
commit 1714e2fd35
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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());
}