Merge pull request #8530 from TheStonedTurtle/poison-fix
Fix status bar poison background color
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user