From 3f572834a632e841cb3fd5db400130097a990c7a Mon Sep 17 00:00:00 2001 From: DiamondDagger590 Date: Fri, 28 Aug 2020 18:41:34 +1000 Subject: [PATCH] #740: Fix EntityDamageEvent not being called for non EntityDamageSource for End Crystals --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 2df4a51306..173f7b20bc 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -986,10 +986,6 @@ public class CraftEventFactory { } public static boolean handleNonLivingEntityDamageEvent(Entity entity, DamageSource source, double damage, boolean cancelOnZeroDamage, boolean cancelled) { - if (entity instanceof EntityEnderCrystal && !(source instanceof EntityDamageSource)) { - return false; - } - final EnumMap modifiers = new EnumMap(DamageModifier.class); final EnumMap> functions = new EnumMap(DamageModifier.class);