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

readonly() Bug #14

Closed ghost closed 6 years ago

ghost commented 6 years ago

Function readonly() not work on TYPE_HOPPER

ghost commented 6 years ago

$menu = InvMenu::create(InvMenu::TYPE_HOPPER)->readonly()->sessionize(); $menu->send($sender);

ghost commented 6 years ago

Maybe I need to use my class?

ghost commented 6 years ago

I'm using PluginTask for setItem()

ghost commented 6 years ago

default

ghost commented 6 years ago

I want the player not to take the item.

Muqsit commented 6 years ago

Hm, you definitely aren't using TYPE_HOPPER in the screenshot

Muqsit commented 6 years ago

I can't reproduce this, I've done the following tests: https://gist.github.com/Muqsit/8154dac28a85c71c46f6b42a0d55df41 and it works fine.