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

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Indirect
Report date: 2020-03-24 11:11:34 +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 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\WitherPet given
File: src/pocketmine/Server
Line: #1936
Error level: TypeError
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
	 * @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\WitherPet)
#1 src/pocketmine/Server(1936): array_filter(array[1], object Closure)
#2 src/pocketmine/level/Level(527): pocketmine\Server->batchPackets(array[1], array[1], boolean )
#3 plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/EventListener(239): 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(95): 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 95.370666503906, double 20.274169921875)
#11 plugins/BlockPets.phar/src/BlockHorizons/BlockPets/pets/BasePet(609): pocketmine\entity\Entity->teleport(object pocketmine\level\Position)
#12 src/pocketmine/level/Level(853): BlockHorizons\BlockPets\pets\BasePet->onUpdate(integer 28935)
#13 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 28935)
#14 src/pocketmine/Server(2443): pocketmine\level\Level->doTick(integer 28935)
#15 src/pocketmine/Server(2574): pocketmine\Server->checkTickUpdates(integer 28935, double 1585048294.026)
#16 src/pocketmine/Server(2343): pocketmine\Server->tick()
#17 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1785): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[52] C:\Users\Administrator\Desktop\PocketMine-MP-stable\, string[60] C:\Users\Administrator\Desktop\PocketMine-MP-stable\plugins\)
#20 src/pocketmine/PocketMine(295): pocketmine\server()
#21 (1): require(string[107] phar://C:/Users/Administrator/Desktop/PocketMine-MP-stable/PocketMine-MP.phar/sr)

Loaded Plugins

  • Show

Server Settings

  • Show