Update PlayerIndicatorsOverlay.java

This commit is contained in:
ST0NEWALL
2019-09-04 22:39:24 -04:00
committed by GitHub
parent 0d036bb31f
commit 6034f6a12d

View File

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