Hi, im getting error on making firework and i have fixed something but it cause this error when using PM4.0.5 due to BedrockProtocol change on EntitiyMetadataCollection, here my code construction : public function syncNetworkData(EntityMetadataCollection $properties): void { parent::syncNetworkData($properties); $properties->setCompoundTag(self:ATA_FIREWORK_ITEM, $this->fireworks->root); } The latest BedrockProtocol contruct so i don't know how to fix this: public function setCompoundTag(int $key, CacheableNbt $value, bool $force = false) : void{ $this->set($key, new CompoundTagMetadataProperty($value), $force); } Thanks!
pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection::setCompoundTag(): Argument #2 ($value) must be of type pocketmine\network\mcpe\protocol\types\CacheableNbt, string given, called in C:\Users\Administrator\Desktop\API\plugins\Firework Fixed\src\RolandDev\BedWars\libs\BlockHorizons\Fireworks\entity\FireworksRocket.php on line 120