Giter Club home page Giter Club logo

Comments (9)

Ifera avatar Ifera commented on July 30, 2024 1

The same is happening to me. Following error occurs while debug mode is enabled:

JackMPlayz joined the game
[23:07:35] [Server thread/DEBUG]: Failed to execute inventory transaction from JackMPlayz with actions: [{"sourceType":0,"windowId":124,"unknown":0,"inventorySlot":0,"oldItem":{"id":0,"count":0},"newItem":{"id":264,"nbt_hex":"0a00000a0700646973706c61790804004e616d650c00c2a763436c69636b204d45210000"}},{"sourceType":0,"windowId":3,"unknown":0,"inventorySlot":0,"oldItem":{"id":264,"nbt_hex":"0a00000a0700646973706c61790804004e616d650c00c2a763436c69636b204d45210000"},"newItem":{"id":0,"count":0}}]
[23:07:35] [Server thread/DEBUG]: Unhandled InventoryTransactionPacket received from JackMPlayz: 0x1e0000000200f801000090040224000a00000a0700646973706c61790804004e616d650c00c2a763436c69636b204d45210000000000060090040224000a00000a0700646973706c61790804004e616d650c00c2a763436c69636b204d45210000000000

I was using the Recursive GUI Inventories example as mentioned in the wiki. The inventory for Menu # 1 showed up with the diamond inside it. As soon as I clicked the diamond GUI closed with no hotbar same as in the picture above. Tried to run the command again and this time when I clicked on the diamond the game froze with no output on console.

from invmenu.

Muqsit avatar Muqsit commented on July 30, 2024

Can you send the code you're using

from invmenu.

bruno1069 avatar bruno1069 commented on July 30, 2024
    public function onInteract(PlayerInteractEvent $event)
    {
        $block = $event->getBlock();
        $p = $event->getPlayer();
        if ($event->getAction() === PlayerInteractEvent::RIGHT_CLICK_BLOCK && $block instanceof EnderChest) {
            $tile = InvMenu::create(InvMenu::TYPE_DOUBLE_CHEST)->setName(TextFormat::GREEN . "Are you sure??")->setListener([$this, "onTransaction"])->readonly();
            $tile->send($p);
            $tile->getInventory()->setItem(29, Item::get(Item::WOOL)->setCustomName(TextFormat::GREEN . "§lYES!"));
            }
        }

    public function onTransaction(Player $player, Item $teste, Item $itemPutIn, SlotChangeAction $inventoryAction): bool
    {
        if ($teste->getId() == Item::WOOL) {
            $player->removeWindow($inventoryAction->getInventory());
        }
        return false;
    }
}

from invmenu.

Muqsit avatar Muqsit commented on July 30, 2024

Which commit of pmmp are you on?

from invmenu.

bruno1069 avatar bruno1069 commented on July 30, 2024

The most recent

from invmenu.

Ifera avatar Ifera commented on July 30, 2024

Also using the latest version of pmmp (8bb785b) with no plugins installed.

from invmenu.

RedstonesMCPE avatar RedstonesMCPE commented on July 30, 2024

How Do I Create A Fake Inventory And Where In The Files?

from invmenu.

daniktheboss avatar daniktheboss commented on July 30, 2024

sorry but i have to comment.. ^ dumbass

from invmenu.

bruno1069 avatar bruno1069 commented on July 30, 2024

Can you fix it? @Muqsit

from invmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.