From 1dfde89e64cdf9c312272ec96ea17ac3cb27e459 Mon Sep 17 00:00:00 2001 From: Kamiel Date: Fri, 20 Apr 2018 17:47:22 +0200 Subject: [PATCH] Draw player indicator clan icon further away from player name --- .../plugins/playerindicators/PlayerIndicatorsOverlay.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 6529c38332..cf8c593af6 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 @@ -91,7 +91,8 @@ public class PlayerIndicatorsOverlay extends Overlay if (clanchatImage != null) { int width = clanchatImage.getWidth(); - Point imageLocation = new Point(textLocation.getX() - width / 2, textLocation.getY() - clanchatImage.getHeight()); + int textHeight = graphics.getFontMetrics().getHeight() - graphics.getFontMetrics().getMaxDescent(); + Point imageLocation = new Point(textLocation.getX() - width / 2 - 1, textLocation.getY() - textHeight / 2 - clanchatImage.getHeight() / 2); OverlayUtil.renderImageLocation(graphics, imageLocation, clanchatImage); // move text