Don't log drowning glow squids (fixes #646)
This commit is contained in:
parent
5211374e14
commit
4803b1af23
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue