Fix status bar poison background color

This commit is contained in:
TheStonedTurtle
2019-04-14 17:33:28 -07:00
parent 3ffa7128c0
commit 2289dc24df

View File

@@ -151,14 +151,14 @@ class StatusBarsOverlay extends Overlay
final int poisonState = client.getVar(VarPlayer.IS_POISONED);
final Color healthBar;
if (poisonState > 0 && poisonState < 50)
{
healthBar = POISONED_COLOR;
}
else if (poisonState >= 1000000)
if (poisonState >= 1000000)
{
healthBar = VENOMED_COLOR;
}
else if (poisonState > 0)
{
healthBar = POISONED_COLOR;
}
else
{
healthBar = HEALTH_COLOR;