Added more detailed entity death reasons (such as suffocation).

This commit is contained in:
Intelli 2024-01-04 20:57:35 -07:00
parent 15e8cd5b88
commit f7fea2b298

View File

@ -195,6 +195,9 @@ public final class EntityDeathListener extends Queue implements Listener {
else if (cause.equals(EntityDamageEvent.DamageCause.WITHER)) {
e = "#wither_effect";
}
else if (!cause.name().contains("_")) {
e = "#" + cause.name().toLowerCase(Locale.ROOT);
}
}
if (entity instanceof ArmorStand) {