From c0002f75a59c8d6934f19a927e86f579d9228309 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Mon, 19 Apr 2021 19:19:30 +0200 Subject: [PATCH] Define priority for BlockPlaceEvent handler --- .../pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java index f50bcb2..6e1a1ed 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java @@ -200,7 +200,7 @@ public void onItemFrameInteract(PlayerInteractEntityEvent event) } } - @EventHandler + @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public void onBlockPlace(BlockPlaceEvent event) { if(isItemShortcut(event.getItemInHand()))