Rework inventory workaround to cancel animation if in an open inventory

On 1.16, when sending a new inventory while another one is open (without explicitly calling `closeInventory` first), a hand swing is sent from the client, which the server handles like any normal arm swing. This in turn results in the `PlayerInteractEvent` and `PlayerAnimationEvent` both being called on Bukkit's end, which are used to detect for left clicks. If an item in the player's hand opens a menu when left clicked and the above is true, this results in that menu being reopened.
2 files changed
tree: 9013c56ba4930bac6673d8326ee796bc47bc812c
  1. .github/ISSUE_TEMPLATE/
  2. .gitignore
  3. .travis.yml
  4. LICENSE
  5. README.md
  6. bukkit-legacy/
  7. bukkit/
  8. bungee/
  9. circle.yml
  10. common/
  11. fabric/
  12. jar/
  13. pom.xml
  14. sponge-legacy/
  15. sponge/
  16. velocity/
README.md

ViaVersion - Spigot, Sponge, BungeeCord, Velocity

Latest Release Build Status Discord

Allows the connection of higher client versions to lower server versions

Supported Versions:

Table (https://i.imgur.com/0u20Y2u.png)

On Bukkit you may also use ProtocolSupport, but ensure you have the right build for your server version.

User Docs: https://docs.viaversion.com/display/VIAVERSION/

Sources:

wiki.vg (Used for various information, we also contribute back)

Burger (See PAaaS)

OpenNBT (used for slot rewriting)

Releases / Dev Builds:

You can find official releases here:

https://www.spigotmc.org/resources/viaversion.19254/history


You can find official dev builds here:

Jenkins: https://ci.viaversion.com

JavaDocs: https://jd.viaversion.com

Maven Repo: https://repo.viaversion.com

License:

MIT License, see LICENSE for more details.

Special thanks to all our Contributors