Skip to content

Commit a23e0d7

Browse files
committed
Commit
1 parent cd89c51 commit a23e0d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/me/nik/combatplus/listeners/fixes/HealthSpoof.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ public HealthSpoof(CombatPlus plugin) {
1717
this.plugin = plugin;
1818
}
1919

20-
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
20+
@EventHandler(priority = EventPriority.LOWEST)
2121
public void onCloseToDeath(EntityDamageEvent e) {
2222
if (!(e.getEntity() instanceof Player)) return;
23+
if (e.isCancelled()) return;
2324
Player p = (Player) e.getEntity();
2425
if (holdsTotem(p)) return;
2526
if (shouldDie(e, p)) {

0 commit comments

Comments
 (0)