Closed axelmine closed 4 years ago
Code: [44] } [45] }else{ [46] return $this->health; [47] } [48] } [49] [50] public function entityBaseTick(int $tickDiff = 1): bool{ [51] if($this->namedtag instanceof CompoundTag){ [52] $hasUpdate = parent::entityBaseTick($tickDiff); [53] if($this->namedtag->hasTag("Boss".$this->getName(), StringTag::class)){ [54] $name = $this->namedtag->getString("Boss".$this->getName()); [55] if(BossData::isBoss($name)){ [56] $this->setNameTag($name." В§c(".$this->getHealth()."/".$this->getMaxHealth().")"); [57] $this->setNameTagAlwaysVisible(true); [58] $this->setNameTagVisible(true); [59] if($this->isOnFire()){ [60] $this->extinguish(); [61] } [62] return $hasUpdate; [63] }else{
Backtrace:
Code: [44] } [45] }else{ [46] return $this->health; [47] } [48] } [49]
[50] public function entityBaseTick(int $tickDiff = 1): bool{ [51] if($this->namedtag instanceof CompoundTag){ [52] $hasUpdate = parent::entityBaseTick($tickDiff); [53] if($this->namedtag->hasTag("Boss".$this->getName(), StringTag::class)){ [54] $name = $this->namedtag->getString("Boss".$this->getName()); [55] if(BossData::isBoss($name)){ [56] $this->setNameTag($name." В§c(".$this->getHealth()."/".$this->getMaxHealth().")"); [57] $this->setNameTagAlwaysVisible(true); [58] $this->setNameTagVisible(true); [59] if($this->isOnFire()){ [60] $this->extinguish(); [61] } [62] return $hasUpdate; [63] }else{
Backtrace:
0 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(181): hmmhmmmm\boss\entity\walk\BossZombie->entityBaseTick(integer 1)
1 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 51602)
2 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 51602)
3 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 51602)
4 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 51602, double 1584728432.2624)
5 src/pocketmine/Server(2143): pocketmine\Server->tick()
6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
7 src/pocketmine/Server(1584): pocketmine\Server->start()
8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/mcserver/, string[23] /home/mcserver/plugins/)
9 src/pocketmine/PocketMine(296): pocketmine\server()
10 (11): require(string[70] phar:///home/mcserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)