menu
#4656920 Argument 1 passed to shoghicp\BigBrother\network\Packet::putSlot() must be an instance of pocketmine\item\Item, instance of pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper given

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-22 01:47:13 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: win
System banner: Windows NT LAPTOP-GV82N05E 10.0 build 18363 (Windows 10) AMD64

Error information

Warning: the BigBrother plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to shoghicp\BigBrother\network\Packet::putSlot() must be an instance of pocketmine\item\Item, instance of pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper given
File: plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/Packet
Line: #106
Error level: TypeError
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
			$itemNBT = ConvertUtils::convertNBTDataFromPCtoPE($nbt);
$item = new ComputerItem($itemId, $damage, $count, $itemNBT);

ConvertUtils::convertItemData(false, $item);

return $item;
}
}

protected function putSlot(Item $item) : void{
ConvertUtils::convertItemData(true, $item);

if($item->getID() === 0){
$this->putShort(-1);
}else{
$this->putShort($item->getID());
$this->putByte($item->getCount());
$this->putShort($item->getDamage());

if($item->hasCompoundTag()){
#0 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/protocol/Play/Server/WindowItemsPacket(50): shoghicp\BigBrother\network\Packet->putSlot(object pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper)
#1 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/Packet(239): shoghicp\BigBrother\network\protocol\Play\Server\WindowItemsPacket->encode()
#2 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/ProtocolInterface(183): shoghicp\BigBrother\network\Packet->write()
#3 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/ProtocolInterface(241): shoghicp\BigBrother\network\ProtocolInterface->sendPacket(integer 1, object shoghicp\BigBrother\network\protocol\Play\Server\WindowItemsPacket)
#4 src/pocketmine/Player(3321): shoghicp\BigBrother\network\ProtocolInterface->putPacket(object shoghicp\BigBrother\DesktopPlayer, object shoghicp\BigBrother\network\protocol\Play\Server\WindowItemsPacket, boolean , boolean )
#5 src/pocketmine/Player(3338): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\InventoryContentPacket, boolean , boolean )
#6 src/pocketmine/inventory/BaseInventory(446): pocketmine\Player->dataPacket(object pocketmine\network\mcpe\protocol\InventoryContentPacket)
#7 src/pocketmine/inventory/transaction/InventoryTransaction(288): pocketmine\inventory\BaseInventory->sendContents(array[1])
#8 src/pocketmine/inventory/transaction/InventoryTransaction(314): pocketmine\inventory\transaction\InventoryTransaction->sendInventories()
#9 src/pocketmine/Player(2471): pocketmine\inventory\transaction\InventoryTransaction->execute()
#10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(149): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
#11 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(173): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
#12 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/DesktopPlayer(813): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
#13 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/ProtocolInterface(263): shoghicp\BigBrother\DesktopPlayer->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
#14 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/ProtocolInterface(379): shoghicp\BigBrother\network\ProtocolInterface->receivePacket(object shoghicp\BigBrother\DesktopPlayer, object shoghicp\BigBrother\network\protocol\Play\Client\CreativeInventoryActionPacket)
#15 plugins/BigBrother-v1.5.0-beta-632-g5ade382.phar/src/shoghicp/BigBrother/network/ProtocolInterface(409): shoghicp\BigBrother\network\ProtocolInterface->handlePacket(object shoghicp\BigBrother\DesktopPlayer, string[9] ..'......)
#16 src/pocketmine/network/Network(109): shoghicp\BigBrother\network\ProtocolInterface->process()
#17 src/pocketmine/Server(2387): pocketmine\network\Network->processInterfaces()
#18 src/pocketmine/Server(2154): pocketmine\Server->tick()
#19 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#20 src/pocketmine/Server(1588): pocketmine\Server->start()
#21 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[28] D:\...PC\Server\komugi,pmmp\, string[36] D:\...PC\Server\komugi,pmmp\plugins\)
#22 src/pocketmine/PocketMine(304): pocketmine\server()
#23 (11): require(string[83] phar://D:/...PC/Server/komugi,pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies