mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-22 13:10:10 +00:00
Display of text vs hearts is based on max health now, not current health.
This commit is contained in:
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{
|
||||
|
||||
Reference in new issue
Block a user