menu
#4873828 Call to undefined method pocketmine\item\ItemBlock::write()

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Indirect
Report date: 2021-04-08 00:35:10 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 39 seconds

System Information

PHP version: 7.4.15
Operating system: linux
System banner: Linux pocketmine 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64

Error information

Warning: the VanillaEntityAI 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 undefined method pocketmine\item\ItemBlock::write()
File: pmsrc/src/pocketmine/network/mcpe/protocol/MobEquipmentPacket
Line: #55
Error level: Error
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
		$this->entityRuntimeId = $this->getEntityRuntimeId();
$this->item = ItemStackWrapper::read($this);
$this->inventorySlot = (\ord($this->get(1)));
$this->hotbarSlot = (\ord($this->get(1)));
$this->windowId = (\ord($this->get(1)));
}

protected function encodePayload(){
$this->putEntityRuntimeId($this->entityRuntimeId);
$this->item->write($this);
($this->buffer .= \chr($this->inventorySlot));
($this->buffer .= \chr($this->hotbarSlot));
($this->buffer .= \chr($this->windowId));
}

public function handle(NetworkSession $session) : bool{
return $session->handleMobEquipment($this);
}
}
#0 pmsrc/src/pocketmine/network/mcpe/protocol/DataPacket(127): pocketmine\network\mcpe\protocol\MobEquipmentPacket->encodePayload()
#1 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(244): pocketmine\network\mcpe\protocol\DataPacket->encode()
#2 pmsrc/src/pocketmine/Player(3359): pocketmine\network\mcpe\RakLibInterface->putPacket(object jasonwynn10\VanillaEntityAI\entity\passiveaggressive\Player, object pocketmine\network\mcpe\protocol\MobEquipmentPacket, boolean , boolean )
#3 pmsrc/src/pocketmine/Player(3376): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\MobEquipmentPacket, boolean , boolean )
#4 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/ItemHolderTrait(130): pocketmine\Player->dataPacket(object pocketmine\network\mcpe\protocol\MobEquipmentPacket)
#5 pmsrc/src/pocketmine/entity/Entity(1961): jasonwynn10\VanillaEntityAI\entity\hostile\Zombie->sendSpawnPacket(object jasonwynn10\VanillaEntityAI\entity\passiveaggressive\Player)
#6 pmsrc/src/pocketmine/Player(1028): pocketmine\entity\Entity->spawnTo(object jasonwynn10\VanillaEntityAI\entity\passiveaggressive\Player)
#7 pmsrc/src/pocketmine/level/Level(2490): pocketmine\Player->sendChunk(integer 23, integer 24, object pocketmine\network\mcpe\protocol\BatchPacket)
#8 pmsrc/src/pocketmine/level/Level(2545): pocketmine\level\Level->sendChunkFromCache(integer 23, integer 24)
#9 pmsrc/src/pocketmine/level/format/io/ChunkRequestTask(81): pocketmine\level\Level->chunkRequestCallback(integer 23, integer 24, object pocketmine\network\mcpe\protocol\BatchPacket)
#10 pmsrc/src/pocketmine/scheduler/AsyncPool(319): pocketmine\level\format\io\ChunkRequestTask->onCompletion(object pocketmine\Server)
#11 pmsrc/src/pocketmine/Server(2393): pocketmine\scheduler\AsyncPool->collectTasks()
#12 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#13 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#14 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#15 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[9] /home/pi/, string[17] /home/pi/plugins/)
#16 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#17 pmsrc(11): require(string[64] phar:///home/pi/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show