diff --git a/runelite-api/src/main/java/net/runelite/api/coords/WorldPoint.java b/runelite-api/src/main/java/net/runelite/api/coords/WorldPoint.java index 10d34072725..707604f2cba 100644 --- a/runelite-api/src/main/java/net/runelite/api/coords/WorldPoint.java +++ b/runelite-api/src/main/java/net/runelite/api/coords/WorldPoint.java @@ -176,8 +176,8 @@ public static WorldPoint fromLocal(Client client, LocalPoint local) public static WorldPoint fromLocal(Scene scene, int x, int y, int plane) { return new WorldPoint( - (x >>> Perspective.LOCAL_COORD_BITS) + scene.getBaseX(), - (y >>> Perspective.LOCAL_COORD_BITS) + scene.getBaseY(), + (x >> Perspective.LOCAL_COORD_BITS) + scene.getBaseX(), + (y >> Perspective.LOCAL_COORD_BITS) + scene.getBaseY(), plane ); } @@ -194,8 +194,8 @@ public static WorldPoint fromLocal(Scene scene, int x, int y, int plane) public static WorldPoint fromLocal(Client client, int x, int y, int plane) { return new WorldPoint( - (x >>> Perspective.LOCAL_COORD_BITS) + client.getBaseX(), - (y >>> Perspective.LOCAL_COORD_BITS) + client.getBaseY(), + (x >> Perspective.LOCAL_COORD_BITS) + client.getBaseX(), + (y >> Perspective.LOCAL_COORD_BITS) + client.getBaseY(), plane ); }