menu
#2823556 Argument 1 passed to pocketmine\Server::pocketmine\{closure}() must be an instance of pocketmine\Player, instance of BlockHorizons\BlockPets\pets\creatures\ChickenPet given

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Indirect
Report date: 2019-09-11 05:15:16 +0000 UTC

System Information

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

Error information

Warning: the MysteryCrate plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Argument 1 passed to pocketmine\Server::pocketmine\{closure}() must be an instance of pocketmine\Player, instance of BlockHorizons\BlockPets\pets\creatures\ChickenPet given
File: src/pocketmine/Server
Line: #1939
Error level: TypeError
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
	 * @param bool         $forceSync
* @param bool $immediate
*/
public function batchPackets(array $players, array $packets, bool $forceSync = false, bool $immediate = false){
if(empty($packets)){
throw new \InvalidArgumentException("Cannot send empty batch");
}
Timings::$playerNetworkTimer->startTiming();

$targets = array_filter($players, function(Player $player) : bool{ return $player->isConnected(); });

if(!empty($targets)){
$pk = new BatchPacket();

foreach($packets as $p){
$pk->addPacket($p);
}

if(Network::$BATCH_THRESHOLD >= 0 and strlen($pk->payload) >= Network::$BATCH_THRESHOLD){
$pk->setCompressionLevel($this->networkCompressionLevel);
#0 (): pocketmine\Server->pocketmine\{closure}(object BlockHorizons\BlockPets\pets\creatures\ChickenPet)
#1 src/pocketmine/Server(1939): array_filter(array[1], object Closure)
#2 src/pocketmine/level/Level(527): pocketmine\Server->batchPackets(array[1], array[4], boolean )
#3 plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/EventListener(235): pocketmine\level\Level->addParticle(object pocketmine\level\particle\FloatingTextParticle, array[1])
#4 src/pocketmine/plugin/MethodEventExecutor(38): JackMD\MysteryCrate\EventListener->onLevelChange(object pocketmine\event\entity\EntityLevelChangeEvent)
#5 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object JackMD\MysteryCrate\EventListener, object pocketmine\event\entity\EntityLevelChangeEvent)
#6 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityLevelChangeEvent)
#7 src/pocketmine/entity/Entity(1997): pocketmine\event\Event->call()
#8 src/pocketmine/entity/Entity(1858): pocketmine\entity\Entity->switchLevel(object pocketmine\level\Level)
#9 src/pocketmine/entity/Entity(1883): pocketmine\entity\Entity->setPosition(object pocketmine\level\Position)
#10 src/pocketmine/entity/Entity(1978): pocketmine\entity\Entity->setPositionAndRotation(object pocketmine\level\Position, double 311.96118164062, double 23.199005126953)
#11 plugins/BlockPets-master/src/BlockHorizons/BlockPets/pets/BasePet(603): pocketmine\entity\Entity->teleport(object pocketmine\level\Position)
#12 src/pocketmine/level/Level(853): BlockHorizons\BlockPets\pets\BasePet->onUpdate(integer 547027)
#13 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 547027)
#14 src/pocketmine/Server(2445): pocketmine\level\Level->doTick(integer 547027)
#15 src/pocketmine/Server(2576): pocketmine\Server->checkTickUpdates(integer 547027, double 1568178916.1473)
#16 src/pocketmine/Server(2345): pocketmine\Server->tick()
#17 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1784): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[31] C:\Users\khang\Desktop\sv test\, string[39] C:\Users\khang\Desktop\sv test\plugins\)
#20 src/pocketmine/PocketMine(299): pocketmine\server()
#21 (1): require(string[86] phar://C:/Users/khang/Desktop/sv test/PocketMine-MP.phar/src/pocketmine/PocketMi)

Loaded Plugins

  • Show

Server Settings

  • Show