Merge pull request #7693 from deathbeam/fix-party-bars-dissapearing

Do not hide party bars when value is changed to 0
This commit is contained in:
Tomas Slusny
2019-02-04 10:20:51 +00:00
committed by GitHub

View File

@@ -106,7 +106,7 @@ public class PartyStatsOverlay extends Overlay
panel.getChildren().add(name);
if (v.getHitpoints() > 0)
if (v.getMaxHitpoints() > 0)
{
final ProgressBarComponent hpBar = new ProgressBarComponent();
hpBar.setBackgroundColor(HP_BG);
@@ -117,7 +117,7 @@ public class PartyStatsOverlay extends Overlay
panel.getChildren().add(hpBar);
}
if (v.getPrayer() > 0)
if (v.getMaxPrayer() > 0)
{
final ProgressBarComponent prayBar = new ProgressBarComponent();
prayBar.setBackgroundColor(PRAY_BG);