Skip to content

Commit

Permalink
Pass shift click events
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jan 4, 2023
1 parent c994ca1 commit 5dcebea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/citizensnpcs/api/gui/InventoryMenu.java
Expand Up @@ -274,7 +274,7 @@ private void handleShiftClick(InventoryClickEvent event, Inventory dest, boolean
InventoryClickEvent e = new InventoryClickEvent(event.getView(), event.getSlotType(),
toNPC ? i : event.getRawSlot(), event.getClick(),
toNPC ? InventoryAction.PLACE_ALL : InventoryAction.PICKUP_ALL);
onInventoryClick(e);
handleClick(e);
if (toNPC) {
event.getView().setCursor(null);
}
Expand All @@ -297,7 +297,7 @@ private void handleShiftClick(InventoryClickEvent event, Inventory dest, boolean
}
InventoryClickEvent e = new InventoryClickEvent(event.getView(), event.getSlotType(),
toNPC ? i : event.getRawSlot(), event.getClick(), action);
onInventoryClick(e);
handleClick(e);
if (toNPC) {
event.getView().setCursor(null);
}
Expand Down

0 comments on commit 5dcebea

Please sign in to comment.