Added more detailed entity death reasons (such as suffocation).
This commit is contained in:
parent
15e8cd5b88
commit
f7fea2b298
|
@ -195,6 +195,9 @@ public final class EntityDeathListener extends Queue implements Listener {
|
||||||
else if (cause.equals(EntityDamageEvent.DamageCause.WITHER)) {
|
else if (cause.equals(EntityDamageEvent.DamageCause.WITHER)) {
|
||||||
e = "#wither_effect";
|
e = "#wither_effect";
|
||||||
}
|
}
|
||||||
|
else if (!cause.name().contains("_")) {
|
||||||
|
e = "#" + cause.name().toLowerCase(Locale.ROOT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity instanceof ArmorStand) {
|
if (entity instanceof ArmorStand) {
|
||||||
|
|
Loading…
Reference in New Issue