From 6034f6a12d6cffe50fed53c2ba420a7467ee0445 Mon Sep 17 00:00:00 2001 From: ST0NEWALL <46624825+pklite@users.noreply.github.com> Date: Wed, 4 Sep 2019 22:39:24 -0400 Subject: [PATCH] Update PlayerIndicatorsOverlay.java --- .../playerindicators/PlayerIndicatorsOverlay.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java index 7fb7b0cb52..96899bbb76 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java @@ -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()) {