menu
#3978490 Call to a member function broadcastPacketToViewers() on null

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Indirect
Report date: 2020-03-25 12:46:09 +0000 UTC

System Information

PHP version: 7.3.5
Operating system: win
System banner: Windows NT WHATUPTIME-COM 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: the BlockPets plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Call to a member function broadcastPacketToViewers() on null
File: src/pocketmine/entity/Entity
Line: #1259
Error level: Error
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
		//for mobs x and z are used for pitch and yaw, and y is used for headyaw
$pk->xRot = $this->pitch;
$pk->yRot = $this->yaw; //TODO: head yaw
$pk->zRot = $this->yaw;

if($teleport){
$pk->flags |= MoveActorAbsolutePacket::FLAG_TELEPORT;
}

$this->level->broadcastPacketToViewers($this, $pk);
}

protected function broadcastMotion() : void{
$pk = new SetActorMotionPacket();
$pk->entityRuntimeId = $this->id;
$pk->motion = $this->getMotion();

$this->level->broadcastPacketToViewers($this, $pk);
}

#0 plugins/BlockPets.phar/src/BlockHorizons/BlockPets/pets/BasePet(573): pocketmine\entity\Entity->broadcastMovement(boolean )
#1 src/pocketmine/entity/Entity(1229): BlockHorizons\BlockPets\pets\BasePet->broadcastMovement(boolean )
#2 src/pocketmine/entity/Entity(1478): pocketmine\entity\Entity->updateMovement()
#3 plugins/BlockPets.phar/src/BlockHorizons/BlockPets/pets/BasePet(582): pocketmine\entity\Entity->onUpdate(integer 25448)
#4 src/pocketmine/level/Level(853): BlockHorizons\BlockPets\pets\BasePet->onUpdate(integer 25448)
#5 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 25448)
#6 src/pocketmine/Server(2443): pocketmine\level\Level->doTick(integer 25448)
#7 src/pocketmine/Server(2574): pocketmine\Server->checkTickUpdates(integer 25448, double 1585140369.6596)
#8 src/pocketmine/Server(2343): pocketmine\Server->tick()
#9 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1785): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] C:\Users\Administrator\Desktop\minehub\, string[47] C:\Users\Administrator\Desktop\minehub\plugins\)
#12 src/pocketmine/PocketMine(295): pocketmine\server()
#13 (1): require(string[94] phar://C:/Users/Administrator/Desktop/minehub/PocketMine-MP.phar/src/pocketmine/)

Loaded Plugins

  • Show

Server Settings

  • Show