From 4ecf45f19e68d57299e41f7235947165b31d68d6 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 26 Jul 2018 21:29:17 -0400 Subject: [PATCH] perspective: fix worldToCanvas to convert from local to scene coords correctly --- runelite-api/src/main/java/net/runelite/api/Perspective.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runelite-api/src/main/java/net/runelite/api/Perspective.java b/runelite-api/src/main/java/net/runelite/api/Perspective.java index 8011ceef15..1bb9033f2f 100644 --- a/runelite-api/src/main/java/net/runelite/api/Perspective.java +++ b/runelite-api/src/main/java/net/runelite/api/Perspective.java @@ -98,7 +98,7 @@ public class Perspective */ public static Point worldToCanvas(@Nonnull Client client, int x, int y, int plane, int zOffset) { - return worldToCanvas(client, x, y, plane, x, y, zOffset); + return worldToCanvas(client, x, y, plane, x >>> LOCAL_COORD_BITS, y >>> LOCAL_COORD_BITS, zOffset); } /**