Skip to content

Commit

Permalink
Change priorities again and amend note
Browse files Browse the repository at this point in the history
Signed-off-by: BT (calcastor/mame) <[email protected]>
  • Loading branch information
calcastor committed Oct 2, 2021
1 parent e790893 commit 20e7759
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void onPlayerClickInventory(final InventoryClickEvent event) {
// Ignored actions
switch (event.getAction()) {
case CLONE_STACK: // Out of scope
case COLLECT_TO_CURSOR: // Handled by InventoryClickedEvent
case COLLECT_TO_CURSOR: // Handled in onPlayerInventoryClick
case NOTHING:
case UNKNOWN:
return;
Expand Down Expand Up @@ -471,7 +471,7 @@ public void onPlayerDropItem(PlayerDropItemEvent event) {
}
}

@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void collectToCursor(InventoryClickEvent event) {
// If this hasn't been cancelled yet, cancel it so our implementation can take over
if (event.getAction() == InventoryAction.COLLECT_TO_CURSOR) {
Expand All @@ -480,7 +480,7 @@ public void collectToCursor(InventoryClickEvent event) {
}
}

@EventHandler(priority = EventPriority.HIGHEST)
@EventHandler(priority = EventPriority.MONITOR)
public void onPlayerInventoryClick(InventoryClickEvent event) {
// Control-double-click on a stack, all similar stacks are moved to the cursor, up to the max
// stack size
Expand Down

0 comments on commit 20e7759

Please sign in to comment.