fixed the mark of grace highlighter to highlight the correct plane

This commit is contained in:
Theo
2021-08-24 19:28:26 -04:00
parent b6dac82fe6
commit 83f549334a

View File

@@ -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);