diff options
author | Wesley Wolfe <weswolf@aol.com> | 2013-07-02 12:34:40 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-07-02 12:34:40 -0500 |
commit | 22adf8a3ce1a9482f44d9f1147e8b35535d3a2ff (patch) | |
tree | 06ea65a10524c0d8852e6007ee37655de3df99c9 /src/main/java/net/minecraft/server/EntityEnderDragon.java | |
parent | e79d26d7d74bf5fa5cd1c1a8de7eaba84f37fd2e (diff) | |
download | craftbukkit-22adf8a3ce1a9482f44d9f1147e8b35535d3a2ff.tar craftbukkit-22adf8a3ce1a9482f44d9f1147e8b35535d3a2ff.tar.gz craftbukkit-22adf8a3ce1a9482f44d9f1147e8b35535d3a2ff.tar.lz craftbukkit-22adf8a3ce1a9482f44d9f1147e8b35535d3a2ff.tar.xz craftbukkit-22adf8a3ce1a9482f44d9f1147e8b35535d3a2ff.zip |
Rework max health values. Fixes BUKKIT-4398
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityEnderDragon.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEnderDragon.java | 2 |
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 f776aeb3..0bd2b60b 100644 --- a/src/main/java/net/minecraft/server/EntityEnderDragon.java +++ b/src/main/java/net/minecraft/server/EntityEnderDragon.java @@ -304,7 +304,7 @@ public class EntityEnderDragon extends EntityInsentient implements IComplex, IMo } this.bC = null; - } else if (this.ticksLived % 10 == 0 && this.getHealth() < this.maxHealth) { // CraftBukkit - this.getMaxHealth() -> this.maxHealth + } else if (this.ticksLived % 10 == 0 && this.getHealth() < this.getMaxHealth()) { // CraftBukkit - this.getMaxHealth() -> this.maxHealth // CraftBukkit start EntityRegainHealthEvent event = new EntityRegainHealthEvent(this.getBukkitEntity(), 1.0D, EntityRegainHealthEvent.RegainReason.ENDER_CRYSTAL); this.world.getServer().getPluginManager().callEvent(event); |