Skip to content

Commit bf68327

Browse files
committed
POS item move event: ignore handler if cancelled
1 parent ab897d9 commit bf68327

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/pro/cloudnode/smp/bankaccounts/events

1 file changed

+1
-1
lines changed

src/main/java/pro/cloudnode/smp/bankaccounts/events/GUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void onInventoryClick(final @NotNull InventoryDragEvent event) {
159159
* Detect changes in items of POS chest while a POS GUI is opened and prevent the item change.
160160
* POS items can still be modified if no POS GUI is opened for that POS.
161161
*/
162-
@EventHandler(priority = EventPriority.HIGHEST)
162+
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
163163
public void posItemsChangeWhileOpened(final @NotNull InventoryMoveItemEvent event) {
164164
final @NotNull Inventory source = event.getSource();
165165
final @NotNull Inventory destination = event.getDestination();

0 commit comments

Comments
 (0)