SPIGOT-4119: Incorrect slot type in InventoryClickEvent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2018-07-24 08:41:15 +10:00
parent fb4c827ec7
commit c03c42de6c

View file

@ -1215,7 +1215,7 @@
+ } + }
+ +
+ InventoryView inventory = this.player.activeContainer.getBukkitView(); + InventoryView inventory = this.player.activeContainer.getBukkitView();
+ SlotType type = CraftInventoryView.getSlotType(inventory, packetplayinwindowclick.b()); + SlotType type = CraftInventoryView.getSlotType(inventory, packetplayinwindowclick.c());
+ InventoryClickEvent event; + InventoryClickEvent event;
+ ClickType click = ClickType.UNKNOWN; + ClickType click = ClickType.UNKNOWN;