Merge pull request #3031 from AttackOfTheMoons/mark_of_grace_fix

client: fix the mark of grace highlighter to highlight the correct plane
This commit is contained in:
Owain van Brakel
2021-08-25 06:15:26 +02:00
committed by GitHub

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