summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-06-12 16:30:04 -0400
committerEvilSeph <evilseph@gmail.com>2012-06-12 16:37:47 -0400
commitb7827c4d224b695e2e5735fb2161bcd607c291c1 (patch)
treea3ff6d36c0054e210344c4f71af0f40816573ce2 /src
parent0f23a4fe23601389257ef3d87b51422bdf89fb78 (diff)
downloadcraftbukkit-b7827c4d224b695e2e5735fb2161bcd607c291c1.tar
craftbukkit-b7827c4d224b695e2e5735fb2161bcd607c291c1.tar.gz
craftbukkit-b7827c4d224b695e2e5735fb2161bcd607c291c1.tar.lz
craftbukkit-b7827c4d224b695e2e5735fb2161bcd607c291c1.tar.xz
craftbukkit-b7827c4d224b695e2e5735fb2161bcd607c291c1.zip
Fixed EnderDragon not dealing damage after it has been hit. Fixes BUKKIT-1751
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/EntityEnderDragon.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEnderDragon.java b/src/main/java/net/minecraft/server/EntityEnderDragon.java
index f8aeae07..68a44808 100644
--- a/src/main/java/net/minecraft/server/EntityEnderDragon.java
+++ b/src/main/java/net/minecraft/server/EntityEnderDragon.java
@@ -282,7 +282,7 @@ public class EntityEnderDragon extends EntityComplex {
this.C();
}
- if (!this.world.isStatic && this.at == 0) {
+ if (!this.world.isStatic && this.hurtTicks == 0) { // CraftBukkit
this.a(this.world.getEntities(this, this.l.boundingBox.grow(4.0D, 2.0D, 4.0D).d(0.0D, -2.0D, 0.0D)));
this.a(this.world.getEntities(this, this.m.boundingBox.grow(4.0D, 2.0D, 4.0D).d(0.0D, -2.0D, 0.0D)));
this.b(this.world.getEntities(this, this.g.boundingBox.grow(1.0D, 1.0D, 1.0D)));