menu
#4583534 Call to a member function getEntity() on null

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-10-18 03:34:51 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: win
System banner: Windows NT WIN-HGF742E4NAN 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64

Error information

Warning: the BlockPets plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getEntity() on null
File: plugins/BlockPets_v1.1.2 (2).phar/src/BlockHorizons/BlockPets/pets/BasePet
Line: #612
Error level: Error
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
		}
if(!$this->isRidden()) {
if(random_int(1, 60) === 1) {
if($this->getHealth() !== $this->getMaxHealth()) {
$this->heal(new EntityRegainHealthEvent($this, 1, EntityRegainHealthEvent::CAUSE_REGEN));
$this->calculator->updateNameTag();
}
}
$petOwner = $this->getPetOwner();
if(!$this->isDormant() && ($this->getLevel()->getEntity($petOwner->getId()) === null || $this->distance($petOwner) >= 50)) {
$this->teleport($petOwner);
return true;
}
++$this->positionSeekTick;
if($this->shouldFindNewPosition()) {
if(!$this->getLoader()->getBlockPetsConfig()->shouldStalkPetOwner()) {
if((bool) random_int(0, 1)) {
$multiplicationValue = 1;
} else {
$multiplicationValue = -1;
#0 src/pocketmine/level/Level(852): BlockHorizons\BlockPets\pets\BasePet->onUpdate(integer 1354)
#1 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 1354)
#2 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 1354)
#3 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 1354, double 1602992091.7208)
#4 src/pocketmine/Server(2154): pocketmine\Server->tick()
#5 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1588): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[98] C:\Users\Administrator\Desktop\................................................., string[106] C:\Users\Administrator\Desktop\.................................................)
#8 src/pocketmine/PocketMine(304): pocketmine\server()
#9 (11): require(string[153] phar://C:/Users/Administrator/Desktop/..........................................)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies