mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +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;
|
namespace pocketmine\item;
|
||||||
|
|
||||||
use pocketmine\block\Block;
|
use pocketmine\block\Block;
|
||||||
|
use pocketmine\block\utils\CoralType;
|
||||||
use pocketmine\block\utils\CoralTypeTrait;
|
use pocketmine\block\utils\CoralTypeTrait;
|
||||||
use pocketmine\block\VanillaBlocks;
|
use pocketmine\block\VanillaBlocks;
|
||||||
use pocketmine\data\bedrock\CoralTypeIdMap;
|
use pocketmine\data\bedrock\CoralTypeIdMap;
|
||||||
@ -34,6 +35,7 @@ final class CoralFan extends Item{
|
|||||||
use CoralTypeTrait;
|
use CoralTypeTrait;
|
||||||
|
|
||||||
public function __construct(private ItemIdentifierFlattened $identifierFlattened){
|
public function __construct(private ItemIdentifierFlattened $identifierFlattened){
|
||||||
|
$this->coralType = CoralType::TUBE();
|
||||||
parent::__construct($this->identifierFlattened, VanillaBlocks::CORAL_FAN()->getName());
|
parent::__construct($this->identifierFlattened, VanillaBlocks::CORAL_FAN()->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user