Skip to content

Commit

Permalink
Increase mine_block listener priority
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Dec 3, 2023
1 parent ba3c3e0 commit 962d3e5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand All @@ -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
Expand Down

0 comments on commit 962d3e5

Please sign in to comment.