What's Changed
- Updated to 1.21.1
- feature: Add ClickContext#interact to allow determining if the click is from an interact event by @kezz in #9
- feature: More grid position generator API by @kezz in #10
- feature: Better coroutine exception handling by @kezz in #12
- chore: Use launch over async to prevent error supression by @LichtHund in #13
- Paper-API is now marked as a non-required dependency which should allow developers to swap it out for their own versions more easily
- Added a function to re-open the last opened background interface
- Changed InterfaceView#close to be non-suspending so it can be safely used in non-suspending situations that want to close a previously suspendingly opened interface
- Reduced how often a player interface is drawn when opened
- The coroutine scope used by interfaces is now available to other plugins
- Chat queries can now indicate whether the menu should be re-opened
- Edited the default reopen reasons, causing background interfaces to be re-opened in more cases
- Fixed an issue where re-opening an interface counted as closing the menu and not as switching views
- Fixed an issue with property updates causing multiple re-renders in certain cases
- Fixed safety issues with mutex usage causing multiple renders
- Fixed issue where closed views could get reopened
- Fixed issue where rendering continued after the coroutine that opened the menu was cancelled
- Fixed isTreeOpened not being recursive causing menus to be marked as non-reopenable even if a descendant sub-menu was still open
Full Changelog: v1.2.0...v1.3.2