Skip to content

Commit 4803b1a

Browse files
committed
Don't log drowning glow squids (fixes #646)
1 parent 5211374 commit 4803b1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/net/coreprotect/listener/entity/EntityDeathListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ protected static void logEntityDeath(LivingEntity entity, String e) {
127127
e = isCommand ? "#command" : "";
128128
}
129129

130+
if (entity.getType() == EntityType.GLOW_SQUID && damage.getCause() == DamageCause.DROWNING) {
131+
return;
132+
}
133+
130134
List<DamageCause> validDamageCauses = Arrays.asList(DamageCause.SUICIDE, DamageCause.POISON, DamageCause.THORNS, DamageCause.MAGIC, DamageCause.WITHER);
131135

132136
boolean skip = true;

0 commit comments

Comments
 (0)