Display of text vs hearts is based on max health now, not current health.

This commit is contained in:
Thomas Guimbretiere committed 2015-01-05 15:38:15 +01:00
1 parent 8483573146
commit 197305bf78
1 file changed
+1 -1
@@ -48,7 +48,7 @@ public class HUDHandlerEntities implements IWailaEntityProvider {
float health = ((EntityLivingBase)entity).getHealth() / 2.0f;
float maxhp = ((EntityLivingBase)entity).getMaxHealth() / 2.0f;
if (((EntityLivingBase)entity).getHealth() > maxhpfortext)
if (((EntityLivingBase)entity).getMaxHealth() > maxhpfortext)
currenttip.add(String.format("HP : " + WHITE + "%.0f" + GRAY + " / " + WHITE + "%.0f", ((EntityLivingBase)entity).getHealth(), ((EntityLivingBase)entity).getMaxHealth()));
else{