9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-03 22:26:30 +00:00

Switched skill exploration listener to monitor priority for cancelled events compatibility

This commit is contained in:
_OfTeN_
2022-11-07 01:27:48 +03:00
parent 1f28c206ca
commit 7b12b8ca6e

View File

@@ -44,7 +44,7 @@ class SkillExploration : Skill(
}
}
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
fun handleLevelling(event: EntityDamageEvent) {
val player = (event.entity as? Player)?.filterSkillEnabled() ?: return