menu
#4873669 Unmapped ID/metadata combination 640:0

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: None
Report date: 2021-04-07 20:12:18 +0000 UTC
Server uptime: 0 days 0 hours 5 minutes 7 seconds

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux fc8791dedf03 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64

Error information

Message: Unmapped ID/metadata combination 640:0
File: pmsrc/src/pocketmine/network/mcpe/convert/ItemTranslator
Line: #152
Error level: InvalidArgumentException
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
			$internalMeta = 0x7fff;
}
if(isset($this->complexCoreToNetMapping[$internalId][$internalMeta])){
return [$this->complexCoreToNetMapping[$internalId][$internalMeta], 0];
}
if(array_key_exists($internalId, $this->simpleCoreToNetMapping)){
return [$this->simpleCoreToNetMapping[$internalId], $internalMeta];
}

throw new \InvalidArgumentException("Unmapped ID/metadata combination $internalId:$internalMeta");
}

/**
* @return int[]
* @phpstan-return array{int, int}
*/
public function fromNetworkId(int $networkId, int $networkMeta, ?bool &$isComplexMapping = null) : array{
if(isset($this->complexNetToCoreMapping[$networkId])){
if($networkMeta !== 0){
throw new \UnexpectedValueException("Unexpected non-zero network meta on complex item mapping");
#0 pmsrc/src/pocketmine/network/mcpe/NetworkBinaryStream(300): pocketmine\network\mcpe\convert\ItemTranslator->toNetworkId(integer 640, integer 0)
#1 pmsrc/src/pocketmine/network/mcpe/protocol/types/inventory/ItemStackWrapper(66): pocketmine\network\mcpe\NetworkBinaryStream->putItemStack(object pocketmine\item\Item, object Closure)
#2 pmsrc/src/pocketmine/network/mcpe/protocol/InventorySlotPacket(50): pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper->write(object pocketmine\network\mcpe\protocol\InventorySlotPacket)
#3 pmsrc/src/pocketmine/network/mcpe/protocol/DataPacket(127): pocketmine\network\mcpe\protocol\InventorySlotPacket->encodePayload()
#4 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(244): pocketmine\network\mcpe\protocol\DataPacket->encode()
#5 pmsrc/src/pocketmine/Player(3359): pocketmine\network\mcpe\RakLibInterface->putPacket(object pocketmine\Player, object pocketmine\network\mcpe\protocol\InventorySlotPacket, boolean , boolean )
#6 pmsrc/src/pocketmine/Player(3376): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\InventorySlotPacket, boolean , boolean )
#7 pmsrc/src/pocketmine/inventory/BaseInventory(468): pocketmine\Player->dataPacket(object pocketmine\network\mcpe\protocol\InventorySlotPacket)
#8 pmsrc/src/pocketmine/inventory/BaseInventory(425): pocketmine\inventory\BaseInventory->sendSlot(integer 2, array[1])
#9 pmsrc/src/pocketmine/inventory/BaseInventory(177): pocketmine\inventory\BaseInventory->onSlotChange(integer 2, object pocketmine\item\ItemBlock, boolean 1)
#10 pmsrc/src/pocketmine/inventory/BaseInventory(315): pocketmine\inventory\BaseInventory->setItem(integer 2, object pocketmine\item\Item)
#11 pmsrc/src/pocketmine/command/defaults/GiveCommand(95): pocketmine\inventory\BaseInventory->addItem(object pocketmine\item\Item)
#12 pmsrc/src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\defaults\GiveCommand->execute(object pocketmine\command\ConsoleCommandSender, string[4] give, array[2])
#13 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[17] give popito57 640)
#14 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[17] give popito57 640)
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine\{closure}()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#17 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617826338.1989)
#18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#20 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[8] /server/, string[16] /server/plugins/)
#21 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#22 pmsrc(11): require(string[56] phar:///server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show