playerindicators: fix agility icon when show cb level is turned on.

This commit is contained in:
Damhan Richardson
2019-09-03 18:26:47 +01:00
parent 14d311be93
commit 90048fc6f0

View File

@@ -160,7 +160,18 @@ public class PlayerIndicatorsOverlay extends Overlay
if (plugin.getAgilityFormat() == PlayerIndicatorsPlugin.AgilityFormats.ICONS)
{
final int width = graphics.getFontMetrics().stringWidth(name);
final int width;
if (plugin.isShowCombatLevel())
{
width = graphics.getFontMetrics().stringWidth(name) + 10;
}
else
{
width = graphics.getFontMetrics().stringWidth(name);
}
final int height = graphics.getFontMetrics().getHeight();
if (level >= plugin.getAgilityFirstThreshold())
{