playerindicators: fix agility icon when show cb level is turned on.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user