From 83f549334ac613a84baa42b1e35d7594a1cd0cc0 Mon Sep 17 00:00:00 2001 From: Theo Date: Tue, 24 Aug 2021 19:28:26 -0400 Subject: [PATCH] fixed the mark of grace highlighter to highlight the correct plane --- .../net/runelite/client/plugins/agility/AgilityOverlay.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/agility/AgilityOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/agility/AgilityOverlay.java index 7612c5b662..d44863d2a1 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/agility/AgilityOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/agility/AgilityOverlay.java @@ -177,8 +177,7 @@ class AgilityOverlay extends Overlay if (tile.getPlane() == client.getPlane() && tile.getItemLayer() != null && tile.getLocalLocation().distanceTo(playerLocation) < MAX_DISTANCE) { - final Polygon poly = tile.getItemLayer().getCanvasTilePoly(); - + final Polygon poly = Perspective.getCanvasTilePoly(client, tile.getLocalLocation(), tile.getPlane()); if (poly != null) { OverlayUtil.renderPolygon(graphics, poly, color);