InvMenu icon indicating copy to clipboard operation
InvMenu copied to clipboard

Cannot open another gui from the first gui opened by the player

Open AraaCuteUwU opened this issue 1 year ago • 5 comments

AraaCuteUwU avatar Mar 18 '24 13:03 AraaCuteUwU

A bit more context on this, I also have a similar issue, when I was using a DoubleChest as the menu it wouldn’t send very often, I tried a few different things, not sure how this works but I moved my code over to be a Hopper, and it sends more regularly? But after running the command a few times it just stops working, and I don’t really see why.

Before people ask yes i close the menu properly.

I’ll attach a video below, if you want to see some code about how I send the menu ect, just ask.

(https://streamable.com/j5vusa) the error you see in game is one I’m sending to the player inside $menu->send(…)

xKaOz avatar Apr 04 '24 22:04 xKaOz

A bit more context on this, I also have a similar issue, when I was using a DoubleChest as the menu it wouldn’t send very often, I tried a few different things, not sure how this works but I moved my code over to be a Hopper, and it sends more regularly? But after running the command a few times it just stops working, and I don’t really see why.

Before people ask yes i close the menu properly.

I’ll attach a video below, if you want to see some code about how I send the menu ect, just ask.

(https://streamable.com/j5vusa) the error you see in game is one I’m sending to the player inside $menu->send(…)

May I see the code?

AraaCuteUwU avatar Apr 05 '24 15:04 AraaCuteUwU

At this point my code is useless, i tested with a blank function to send a empty UI, on the latest commit, and it only sent twice.

image

I randomly tried to test a old commit (https://github.com/Muqsit/InvMenu/tree/706e307d705ef8fe20653bebd04a18b1d9b3e47) and everything is now working fine, with my original menu.

But honestly i don't see what could be wrong with his latest commit, what would've caused this.

xKaOz avatar Apr 05 '24 17:04 xKaOz

At this point my code is useless, i tested with a blank function to send a empty UI, on the latest commit, and it only sent twice.

image

I randomly tried to test a old commit (https://github.com/Muqsit/InvMenu/tree/706e307d705ef8fe20653bebd04a18b1d9b3e47) and everything is now working fine, with my original menu.

But honestly i don't see what could be wrong with his latest commit, what would've caused this.

I don't think there's anything wrong with my code, my code is the same as that

AraaCuteUwU avatar Apr 05 '24 19:04 AraaCuteUwU

@AraaCuteUwU no, thats not what i was saying i mean they is a issue with InvMenu related to the latest commit, you can use the older commit ((https://github.com/Muqsit/InvMenu/tree/706e307d705ef8fe20653bebd04a18b1d9b3e47) like i did, to solve this.

xKaOz avatar Apr 05 '24 20:04 xKaOz