Muqsit / InvMenu

A PocketMine-MP virion to create and manage virtual inventories!
https://poggit.pmmp.io/ci/Muqsit/InvMenu/~
GNU General Public License v3.0
201 stars 75 forks source link

Error. #9

Closed ghost closed 6 years ago

ghost commented 6 years ago

[23:07:36] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\nbt\NetworkLittleEndianNBTStream::setData()" (EXCEPTION) in "plugins/InvMenu_v1.0/src/muqsit/invmenu/inventories/BaseFakeInventory" at line 122
[23:07:36] [Server thread/DEBUG]: #0 plugins/InvMenu_v1.0/src/muqsit/invmenu/inventories/BaseFakeInventory(70): muqsit\invmenu\inventories\BaseFakeInventory->sendFakeTile(pocketmine\Player object)
[23:07:36] [Server thread/DEBUG]: #1 src/pocketmine/inventory/BaseInventory(396): muqsit\invmenu\inventories\BaseFakeInventory->onOpen(pocketmine\Player object)
[23:07:36] [Server thread/DEBUG]: #2 src/pocketmine/Player(3758): pocketmine\inventory\BaseInventory->open(pocketmine\Player object)
[23:07:36] [Server thread/DEBUG]: #3 plugins/InvMenu_v1.0/src/muqsit/invmenu/InvMenu(153): pocketmine\Player->addWindow(muqsit\invmenu\inventories\HopperInventory object)
[23:07:36] [Server thread/DEBUG]: #4 plugins/Factions_v1.0.0/src/zyware/Shop/Shop(20): muqsit\invmenu\InvMenu->send(pocketmine\Player object)
[23:07:36] [Server thread/DEBUG]: #5 src/pocketmine/command/PluginCommand(58): zyware\Shop\Shop->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string shop, array Array())
[23:07:36] [Server thread/DEBUG]: #6 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string shop, array Array())
[23:07:36] [Server thread/DEBUG]: #7 src/pocketmine/Server(1995): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string shop)
[23:07:36] [Server thread/DEBUG]: #8 src/pocketmine/Player(2113): pocketmine\Server->dispatchCommand(pocketmine\Player object, string shop)
[23:07:36] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(220): pocketmine\Player->chat(string /shop)
[23:07:36] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
[23:07:36] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[23:07:36] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/protocol/BatchPacket(118): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
[23:07:36] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[23:07:36] [Server thread/DEBUG]: #14 src/pocketmine/Player(2919): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[23:07:36] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(147): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[23:07:36] [Server thread/DEBUG]: #16 vendor/pocketmine/raklib/server/ServerHandler(103): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.0.87 11450, raklib\protocol\EncapsulatedPacket object, integer 0)
[23:07:36] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket()
[23:07:36] [Server thread/DEBUG]: #18 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
[23:07:36] [Server thread/DEBUG]: #19 src/pocketmine/Server(2540): pocketmine\network\Network->processInterfaces()
[23:07:36] [Server thread/DEBUG]: #20 src/pocketmine/Server(2291): pocketmine\Server->tick()
[23:07:36] [Server thread/DEBUG]: #21 src/pocketmine/Server(2164): pocketmine\Server->tickProcessor()
[23:07:36] [Server thread/DEBUG]: #22 src/pocketmine/Server(1747): pocketmine\Server->start()
[23:07:36] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(385): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\mikha\Desktop\PocketMine-MP\, string C:\Users\mikha\Desktop\PocketMine-MP\plugins\)```
ghost commented 6 years ago

My code:


        $menu->getInventory()->setContents([
            Item::get(Item::DIAMOND_SWORD),
            Item::get(Item::DIAMOND_PICKAXE)
        ]);
        $menu->getInventory()->addItem(Item::get(Item::DIAMOND_AXE));
        $menu->send($sender);
ghost commented 6 years ago

Fix it as soon as possible

Muqsit commented 6 years ago

Use an older commit for now, this isn't meant for the latest commit.

ghost commented 6 years ago

@Muqsit Are you talking about a plugin or PocketMine-MP?

Muqsit commented 6 years ago

Pocketmine

ghost commented 6 years ago

@Muqsit Maybe you will update the plugin?