From b7827c4d224b695e2e5735fb2161bcd607c291c1 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Tue, 12 Jun 2012 16:30:04 -0400 Subject: [PATCH] Fixed EnderDragon not dealing damage after it has been hit. Fixes BUKKIT-1751 --- src/main/java/net/minecraft/server/EntityEnderDragon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityEnderDragon.java b/src/main/java/net/minecraft/server/EntityEnderDragon.java index f8aeae0756..68a44808f9 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)));