We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d0295 commit 05f9400Copy full SHA for 05f9400
src/main/java/lol/hyper/toolstats/events/EntityDamage.java
@@ -53,6 +53,13 @@ public void onDamage(EntityDamageByEntityEvent event) {
53
return;
54
}
55
LivingEntity livingEntity = (LivingEntity) event.getEntity();
56
+
57
+ // ignore void and /kill damage
58
+ EntityDamageEvent.DamageCause cause = event.getCause();
59
+ if (cause == EntityDamageEvent.DamageCause.SUICIDE || cause == EntityDamageEvent.DamageCause.VOID) {
60
+ return;
61
+ }
62
63
// mob is going to die
64
if (livingEntity.getHealth() - event.getFinalDamage() <= 0) {
65
// a player is killing something
0 commit comments