menu
#4873791 Call to undefined method pocketmine\item\DiamondHelmet::write()

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: None
Report date: 2021-04-07 23:09:33 +0000 UTC
Server uptime: 0 days 0 hours 16 minutes 24 seconds

System Information

PHP version: 7.3.19
Operating system: linux
System banner: Linux OwnageC 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 x86_64

Error information

Message: Call to undefined method pocketmine\item\DiamondHelmet::write()
File: pmsrc/src/pocketmine/network/mcpe/protocol/AddItemActorPacket
Line: #66
Error level: Error
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
		$this->position = $this->getVector3();
$this->motion = $this->getVector3();
$this->metadata = $this->getEntityMetadata();
$this->isFromFishing = (($this->get(1) !== "\x00"));
}

protected function encodePayload(){
$this->putEntityUniqueId($this->entityUniqueId ?? $this->entityRuntimeId);
$this->putEntityRuntimeId($this->entityRuntimeId);
$this->item->write($this);
$this->putVector3($this->position);
$this->putVector3Nullable($this->motion);
$this->putEntityMetadata($this->metadata);
($this->buffer .= ($this->isFromFishing ? "\x01" : "\x00"));
}

public function handle(NetworkSession $session) : bool{
return $session->handleAddItemActor($this);
}
}
#0 pmsrc/src/pocketmine/network/mcpe/protocol/DataPacket(127): pocketmine\network\mcpe\protocol\AddItemActorPacket->encodePayload()
#1 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(86): pocketmine\network\mcpe\protocol\DataPacket->encode()
#2 pmsrc/src/pocketmine/Server(1729): pocketmine\network\mcpe\protocol\BatchPacket->addPacket(object pocketmine\network\mcpe\protocol\AddItemActorPacket)
#3 pmsrc/src/pocketmine/level/Level(923): pocketmine\Server->batchPackets(array[1], array[12], boolean , boolean )
#4 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 19288)
#5 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 19288)
#6 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 19288, double 1617836973.6541)
#7 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#8 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#9 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#10 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[21] /home/servers/opfacs/, string[29] /home/servers/opfacs/plugins/)
#11 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#12 pmsrc(11): require(string[74] phar:///home/servers/base/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show