commit | 7e03da66d40f96d41d56b20e90eb0d2d76571fd5 | [log] [download] |
---|---|---|
author | RednedEpic <redned235@gmail.com> | Sat Aug 22 13:25:00 2020 -0500 |
committer | RednedEpic <redned235@gmail.com> | Sat Aug 22 13:25:00 2020 -0500 |
tree | 9013c56ba4930bac6673d8326ee796bc47bc812c | |
parent | b209eb3c8b33c883d3eae65724b7dae867998df1 [diff] |
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.
Allows the connection of higher client versions to lower server versions
Supported Versions:
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/
wiki.vg (Used for various information, we also contribute back)
Burger (See PAaaS)
OpenNBT (used for slot rewriting)
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
MIT License, see LICENSE for more details.
Special thanks to all our Contributors