#63 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: | 75a7b989 |
Plugin involvement: | Indirect |
Report date: | 2023-12-24 10:53:28 +0000 UTC |
Server uptime: | 0 days 1 hours 21 minutes 49 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
Warning: a plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
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#870999, null)
#1 pmsrc/src/item/Item(733): pocketmine\data\bedrock\item\ItemSerializer->serializeStack(object pocketmine\item\Item#870999, int 12)
#2 pmsrc/src/block/tile/ContainerTrait(75): pocketmine\item\Item->nbtSerialize(int 12)
#3 pmsrc/src/block/tile/Chest(83): pocketmine\block\tile\Chest->saveItems(object pocketmine\nbt\tag\CompoundTag#1080325)
#4 pmsrc/src/block/tile/Tile(77): pocketmine\block\tile\Chest->writeSaveData(object pocketmine\nbt\tag\CompoundTag#1080325)
#5 pmsrc/src/world/World(3049): pocketmine\block\tile\Tile->saveNBT()
#6 (): pocketmine\world\World->pocketmine\world\{closure}(object pocketmine\block\tile\Chest#747911)
#7 pmsrc/src/world/World(3049): array_map(object Closure#1544416, array[19])
#8 pmsrc/src/world/World(3571): pocketmine\world\World->unloadChunk(int -119, int 44, true)
#9 pmsrc/src/world/World(1017): pocketmine\world\World->unloadChunks()
#10 pmsrc/src/world/World(992): pocketmine\world\World->actuallyDoTick(int 32918)
#11 pmsrc/src/world/WorldManager(351): pocketmine\world\World->doTick(int 32918)
#12 pmsrc/src/Server(1891): pocketmine\world\WorldManager->tick(int 32918)
#13 pmsrc/src/Server(1773): pocketmine\Server->tick()
#14 pmsrc/src/Server(1096): pocketmine\Server->tickProcessor()
#15 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/)
#16 pmsrc/src/PocketMine(364): pocketmine\server()
#17 pmsrc(11): require(string[61] phar:///home/anmine/servers/s1/InCore.phar/src/PocketMine.php)
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show