runelite-client: pass in z offset into renderActorOverlayImage

This commit is contained in:
Lotto
2018-03-26 17:12:16 +02:00
parent 35d8f2ef71
commit 04abc1fb12
2 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ class FishingSpotOverlay extends Overlay
BufferedImage fishImage = getFishImage(spot);
if (fishImage != null)
{
OverlayUtil.renderActorOverlayImage(graphics, npc, fishImage, color.darker());
OverlayUtil.renderActorOverlayImage(graphics, npc, fishImage, color.darker(), npc.getLogicalHeight());
}
}
else

View File

@@ -95,7 +95,7 @@ public class OverlayUtil
}
}
public static void renderActorOverlayImage(Graphics2D graphics, Actor actor, BufferedImage image, Color color)
public static void renderActorOverlayImage(Graphics2D graphics, Actor actor, BufferedImage image, Color color, int zOffset)
{
Polygon poly = actor.getCanvasTilePoly();
if (poly != null)
@@ -103,7 +103,7 @@ public class OverlayUtil
renderPolygon(graphics, poly, color);
}
Point imageLocation = actor.getCanvasImageLocation(graphics, image, actor.getLogicalHeight());
Point imageLocation = actor.getCanvasImageLocation(graphics, image, zOffset);
if (imageLocation != null)
{
renderImageLocation(graphics, imageLocation, image);