Solved Why does this happen?

Discussion in 'Development' started by LyricalLyfes, Nov 18, 2021.

  1. LyricalLyfes

    LyricalLyfes Spider Jockey

    Messages:
    28
    So I'm using InvMenu to create a chest inventory and whenever I do this

    $menu = InvMenu::create(InvMenu::TYPE_CHEST);
    $menu->send($player);

    then I create a task to remove the window

    $player->removeWindow($menu->getInventory());

    after I remove the window, I cannot access any inventory not even my own

    Does anyone know why does this happen and how to fix it?
     
  2. NTT

    NTT Zombie

    Messages:
    297
    GitHub:
    NTT1906
  3. minijaham

    minijaham Zombie Pigman

    Messages:
    749
    GitHub:
    minijaham
  4. LyricalLyfes

    LyricalLyfes Spider Jockey

    Messages:
    28
    NTT and minijaham like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.