mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
#740: Fix EntityDamageEvent not being called for non EntityDamageSource for End Crystals
This commit is contained in:
parent
3c7143e7b4
commit
3f572834a6
1 changed files with 0 additions and 4 deletions
|
@ -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<DamageModifier, Double> modifiers = new EnumMap<DamageModifier, Double>(DamageModifier.class);
|
||||
final EnumMap<DamageModifier, Function<? super Double, Double>> functions = new EnumMap(DamageModifier.class);
|
||||
|
||||
|
|
Loading…
Reference in a new issue