diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEnderPearl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEnderPearl.java b/src/main/java/net/minecraft/server/EntityEnderPearl.java index 02e0327e..5469b6e2 100644 --- a/src/main/java/net/minecraft/server/EntityEnderPearl.java +++ b/src/main/java/net/minecraft/server/EntityEnderPearl.java @@ -42,7 +42,10 @@ public class EntityEnderPearl extends EntityProjectile { this.shooter.fallDistance = 0.0F; EntityDamageEvent event = new EntityDamageEvent(getBukkitEntity(), EntityDamageEvent.DamageCause.FALL, 5); Bukkit.getPluginManager().callEvent(event); - this.shooter.damageEntity(DamageSource.FALL, event.getDamage()); + + if (!event.isCancelled()) { + this.shooter.damageEntity(DamageSource.FALL, event.getDamage()); + } } // CraftBukkit end |