menu
#66 No serializer registered for pocketmine\item\Item (20232) Amethyst Shard

Submitted by PocketMine-MP 5.9.1+dev

General information

Version: 5.9.1+dev
Git commit: 23edde27
Plugin involvement: None
Report date: 2023-12-24 11:52:57 +0000 UTC
Server uptime: 0 days 0 hours 17 minutes 26 seconds

System Information

PHP version: 8.2.9
JIT status: Not available
Operating system: linux
System banner: Linux ananasmine.ru 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64

Error information

Thread: Main
Message: No serializer registered for pocketmine\item\Item (20232) Amethyst Shard
File: pmsrc/src/data/bedrock/item/ItemSerializer
Line: #104
Type: pocketmine\data\bedrock\item\ItemTypeSerializeException
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
			throw new \InvalidArgumentException("Cannot serialize a null itemstack");
}
if($item instanceof ItemBlock){
$data = $this->serializeBlockItem($item->getBlock());
}else{
$index = $item->getTypeId();

$locatedSerializer = $this->itemSerializers[$index] ?? null;
if($locatedSerializer === null){
throw new ItemTypeSerializeException("No serializer registered for " . get_class($item) . " ($index) " . $item->getName());
}

/**
* TODO: there is no guarantee that this type actually matches that of $item - a plugin may have stolen
* the type ID of the item (which never makes sense, even in a world where overriding item types is a thing).
* In the future we'll need some way to guarantee that type IDs are never reused (perhaps spl_object_id()?)
*
* @var \Closure $serializer
* @phpstan-var \Closure(TItemType) : Data $serializer
*/
#0 pmsrc/src/data/bedrock/item/ItemSerializer(140): pocketmine\data\bedrock\item\ItemSerializer->serializeType(object pocketmine\item\Item#1785159, null)
#1 pmsrc/src/item/Item(733): pocketmine\data\bedrock\item\ItemSerializer->serializeStack(object pocketmine\item\Item#1785159, int 16)
#2 pmsrc/src/entity/Human(439): pocketmine\item\Item->nbtSerialize(int 16)
#3 pmsrc/src/player/Player(2321): pocketmine\entity\Human->saveNBT()
#4 pmsrc/src/player/Player(2348): pocketmine\player\Player->getSaveData()
#5 pmsrc/src/world/WorldManager(398): pocketmine\player\Player->save()
#6 pmsrc/src/world/WorldManager(363): pocketmine\world\WorldManager->doAutoSave()
#7 pmsrc/src/Server(1891): pocketmine\world\WorldManager->tick(int 12000)
#8 pmsrc/src/Server(1773): pocketmine\Server->tick()
#9 pmsrc/src/Server(1096): pocketmine\Server->tickProcessor()
#10 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[24] /home/anmine/servers/s1/, string[32] /home/anmine/servers/s1/plugins/)
#11 pmsrc/src/PocketMine(364): pocketmine\server()
#12 pmsrc(11): require(string[61] phar:///home/anmine/servers/s1/InCore.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show