SPIGOT-4119: Incorrect slot type in InventoryClickEvent

This commit is contained in:
md_5 2018-07-24 08:41:15 +10:00
parent 6a109cf6bc
commit 38adf52b28

View File

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