TypeError: "Argument 2 passed to pocketmine\entity\DataPropertyManager::setFloat() must be of the type float, null given, called in phar:///home/PocketMine-MP.phar/src/pocketmine/entity/Entity.php on line 576" (EXCEPTION) in "src/pocketmine/entity/DataPropertyManager" at line 119
$ionic->setDataProperty(self:ATA_SCALE, self:ATA_TYPE_FLOAT, $ionic->getDataProperty(self:ATA_SCALE) * $height / 100); return $ionic; } public function __construct(Level $level, CompoundTag $nbt) { parent::__construct($level, $nbt); $this->opened = (bool) $nbt->getString("Opened", false); $this->setNameTag("§f§lИонное поле"); } /** * Returns is it opened * * @return bool */ public function isOpened(): bool { return $this->opened;