diff options
author | feildmaster <admin@feildmaster.com> | 2012-12-23 05:49:03 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-12-23 07:29:06 -0600 |
commit | ced06463510e7836de72e259bcd17e8ab1629877 (patch) | |
tree | 4c694e6ccf866b9acb45ca3a8ea8302e4c13894a /src/main/java/net/minecraft/server/EntityWither.java | |
parent | 4e1793f363fad0ecb8c519526f1b93d8fd53377d (diff) | |
download | craftbukkit-ced06463510e7836de72e259bcd17e8ab1629877.tar craftbukkit-ced06463510e7836de72e259bcd17e8ab1629877.tar.gz craftbukkit-ced06463510e7836de72e259bcd17e8ab1629877.tar.lz craftbukkit-ced06463510e7836de72e259bcd17e8ab1629877.tar.xz craftbukkit-ced06463510e7836de72e259bcd17e8ab1629877.zip |
Implement entity max health methods. Adds BUKKIT-266
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityWither.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityWither.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityWither.java b/src/main/java/net/minecraft/server/EntityWither.java index 45bcf23e..b671bd50 100644 --- a/src/main/java/net/minecraft/server/EntityWither.java +++ b/src/main/java/net/minecraft/server/EntityWither.java @@ -70,7 +70,7 @@ public class EntityWither extends EntityMonster implements IRangedEntity { public void c() { if (!this.world.isStatic) { - this.datawatcher.watch(16, Integer.valueOf(this.health)); + this.datawatcher.watch(16, Integer.valueOf(this.getScaledHealth())); // CraftBukkit - this.health -> this.getScaledHealth() } this.motY *= 0.6000000238418579D; @@ -458,7 +458,7 @@ public class EntityWither extends EntityMonster implements IRangedEntity { } public boolean o() { - return this.b() <= this.getMaxHealth() / 2; + return this.b() <= this.maxHealth / 2; // CraftBukkit - this.getMaxHealth() -> this.maxHealth } public EnumMonsterType getMonsterType() { |