From 8ecfca47def026cde9a80cf8a68af2476d0b65aa Mon Sep 17 00:00:00 2001 From: Feildmaster Date: Wed, 8 Feb 2012 13:26:45 -0600 Subject: [PATCH] [Bleeding] Fixed EnderDragon suffocation. --- src/main/java/net/minecraft/server/EntityLiving.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java index 6cf48cb6bf..ec2080d2ae 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -177,7 +177,7 @@ public abstract class EntityLiving extends Entity { } // CraftBukkit start - don't inline the damage, perform it with an event - if (this.isAlive() && this.inBlock()) { + if (this.isAlive() && this.inBlock() && !(this instanceof EntityEnderDragon)) { // EnderDragon's don't suffocate. EntityDamageEvent event = new EntityDamageEvent(this.getBukkitEntity(), EntityDamageEvent.DamageCause.SUFFOCATION, 1); this.world.getServer().getPluginManager().callEvent(event);