inventory-framework icon indicating copy to clipboard operation
inventory-framework copied to clipboard

Close context is called when opening

Open ch4ika opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

🐛 Describe the bug

If you call context.openForPlayer for an open view, the onOpen and the onClose context will be called for the other view.

✔️ Expected behavior

For the new view, only the onOpen context should be called.

👣 Steps to Reproduce

No response

💻 Platform

  • [X] Bukkit
  • [ ] Sponge
  • [ ] Other

⭐ Server Version

1.20.2

📚 Library Version

3.0.8

✍️ Additional context

No response

ch4ika avatar Mar 27 '24 17:03 ch4ika

It's supposed to be the way it is to avoid bugs like closed inventories for the client and not for the server ig

goncalodelima avatar Jan 27 '25 11:01 goncalodelima