13
0
geforkt von Mirrors/Paper

[Bleeding] Fixed EnderDragon suffocation.

Dieser Commit ist enthalten in:
Feildmaster 2012-02-08 13:26:45 -06:00 committet von EvilSeph
Ursprung 6dda89d873
Commit 8ecfca47de

Datei anzeigen

@ -177,7 +177,7 @@ public abstract class EntityLiving extends Entity {
} }
// CraftBukkit start - don't inline the damage, perform it with an event // 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); EntityDamageEvent event = new EntityDamageEvent(this.getBukkitEntity(), EntityDamageEvent.DamageCause.SUFFOCATION, 1);
this.world.getServer().getPluginManager().callEvent(event); this.world.getServer().getPluginManager().callEvent(event);