3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-13 03:20:12 +01:00
ViaVersion/common/src/main
RednedEpic 7e03da66d4 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.
2020-08-22 13:25:00 -05:00
..
java/us/myles/ViaVersion Rework inventory workaround to cancel animation if in an open inventory 2020-08-22 13:25:00 -05:00
resources/assets/viaversion Rewrite statistics category ids 2020-08-13 13:31:14 +02:00