Don't log drowning glow squids (fixes #646)

This commit is contained in:
Intelli 2025-03-10 18:38:23 -06:00
parent 5211374e14
commit 4803b1af23

View file

@ -127,6 +127,10 @@ public final class EntityDeathListener extends Queue implements Listener {
e = isCommand ? "#command" : "";
}
if (entity.getType() == EntityType.GLOW_SQUID && damage.getCause() == DamageCause.DROWNING) {
return;
}
List<DamageCause> validDamageCauses = Arrays.asList(DamageCause.SUICIDE, DamageCause.POISON, DamageCause.THORNS, DamageCause.MAGIC, DamageCause.WITHER);
boolean skip = true;