From 962d3e5a1b38d47ad1b96add876f775fb6dc268c Mon Sep 17 00:00:00 2001 From: Will FP Date: Sun, 3 Dec 2023 20:59:29 +0000 Subject: [PATCH] Increase mine_block listener priority --- .../com/willfp/libreforge/triggers/impl/TriggerMineBlock.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/com/willfp/libreforge/triggers/impl/TriggerMineBlock.kt b/core/src/main/kotlin/com/willfp/libreforge/triggers/impl/TriggerMineBlock.kt index 014343a21..7ac86fd8b 100644 --- a/core/src/main/kotlin/com/willfp/libreforge/triggers/impl/TriggerMineBlock.kt +++ b/core/src/main/kotlin/com/willfp/libreforge/triggers/impl/TriggerMineBlock.kt @@ -6,6 +6,7 @@ import com.willfp.libreforge.triggers.Trigger import com.willfp.libreforge.triggers.TriggerData import com.willfp.libreforge.triggers.TriggerParameter import org.bukkit.event.EventHandler +import org.bukkit.event.EventPriority import org.bukkit.event.block.BlockBreakEvent object TriggerMineBlock : Trigger("mine_block") { @@ -17,7 +18,7 @@ object TriggerMineBlock : Trigger("mine_block") { TriggerParameter.ITEM ) - @EventHandler(ignoreCancelled = true) + @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) fun handle(event: BlockBreakEvent) { val player = event.player val block = event.block