Add InventoryView#getSlotType

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-12-26 10:40:14 +11:00
parent 6631f07cae
commit d085b4781b
2 changed files with 1 additions and 68 deletions

View File

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