Commit Graph

22 Commits

Author SHA1 Message Date
KennyTV d36def89e1 Abstract mapping loading 2020-09-04 11:04:44 +02:00
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
connorhartley f3d8b47add Use ClientboundPackets1_16#CLOSE_WINDOW instead of byte for packet ID 2020-08-17 11:09:12 +12:00
connorhartley d3cadaf90f Close the open inventory before opening a new one on 1.16 2020-08-17 10:08:56 +12:00
KennyTV e1464044a7
Use Map in RecipeRewriter, use correct names for 1.13/1.14 rewriters 2020-07-15 11:42:59 +02:00
KennyTV 5ce1e850c8
Rewrite item nbt attributes 2020-07-02 15:57:52 +02:00
KennyTV 67c5e78e7b
Cleanup declare recipe, trade list, and advancement packets 2020-07-02 00:18:33 +02:00
KennyTV 3a48e54e52
Directly read components as json, to only de-/serialize once 2020-06-25 16:41:39 +02:00
KennyTV 0b1c210f77
Fix component read length
Fixes #1822, fixes #1696
2020-06-23 19:15:20 +02:00
KennyTV 9785878d87
1.16 pre7 2020-06-16 18:50:50 +02:00
KennyTV 5d8084986f
Put itemmappings into custom Int2IntBiMap 2020-06-08 23:54:24 +02:00
KennyTV 38f845bb7e
Consistency changes, 1.11->1.12 packet constants
Almost there! :>
2020-06-05 23:06:00 +02:00
KennyTV d7d4e58106
Packet type constants and auto channel mapping 2020-06-05 20:48:35 +02:00
KennyTV 1285a0c6bf
1.16-pre1 2020-06-05 00:42:39 +02:00
Gerrygames 5009ffbb5a handle new window type in 1.16 2020-05-08 01:36:24 +02:00
Gerrygames 93d21efd3d fix enchantments in enchanting table for 1.16 2020-04-29 21:10:05 +02:00
KennyTV c956f23def
Add safety checks to skullowner conversion 2020-04-17 21:02:51 +02:00
KennyTV b03dfa9951
20w16a 2020-04-15 17:53:02 +02:00
Gerrygames 6b7f00ef76 fix skull items 2020-03-21 13:51:14 +01:00
KennyTV a7ab4153ef 20w12a 2020-03-18 19:15:58 +01:00
KennyTV c4b447f7b6 Handle items in cooldown packet 2020-02-08 21:33:44 +01:00
KennyTV 2184ef19ca 20w06a, more cleanup 2020-02-05 20:09:06 +01:00