Merge pull request #2435 from BentoBoxWorld/2433_inventory_click_event_priority

Shift InventoryClickEvent listener to LOW priority #2433
This commit is contained in:
tastybento 2024-07-16 22:07:26 -07:00 committed by GitHub
commit 9fccb89261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ public class PanelListenerManager implements Listener {
private static final HashMap<UUID, Panel> openPanels = new HashMap<>();
@EventHandler(priority = EventPriority.HIGHEST)
@EventHandler(priority = EventPriority.LOW)
public void onInventoryClick(InventoryClickEvent event) {
User user = User.getInstance(event.getWhoClicked()); // The player that clicked the item
InventoryView view = event.getView();