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/MobEffectList.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/MobEffectList.java')
-rw-r--r-- | src/main/java/net/minecraft/server/MobEffectList.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/MobEffectList.java b/src/main/java/net/minecraft/server/MobEffectList.java index 2c4563d4..86696498 100644 --- a/src/main/java/net/minecraft/server/MobEffectList.java +++ b/src/main/java/net/minecraft/server/MobEffectList.java @@ -75,7 +75,7 @@ public class MobEffectList { public void tick(EntityLiving entityliving, int i) { if (this.id == REGENERATION.id) { - if (entityliving.getHealth() < entityliving.getMaxHealth()) { + if (entityliving.getHealth() < entityliving.maxHealth) { // CraftBukkit - .getMaxHealth() -> .maxHealth entityliving.heal(1, RegainReason.MAGIC_REGEN); // CraftBukkit } } else if (this.id == POISON.id) { |