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/MobEffectList.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/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 ab2432f4..dd018fdd 100644 --- a/src/main/java/net/minecraft/server/MobEffectList.java +++ b/src/main/java/net/minecraft/server/MobEffectList.java @@ -81,7 +81,7 @@ public class MobEffectList { public void tick(EntityLiving entityliving, int i) { if (this.id == REGENERATION.id) { - if (entityliving.getHealth() < entityliving.maxHealth) { // CraftBukkit - .getMaxHealth() -> .maxHealth + if (entityliving.getHealth() < entityliving.getMaxHealth()) { entityliving.heal(1.0F, RegainReason.MAGIC_REGEN); // CraftBukkit } } else if (this.id == POISON.id) { |