perspective: fix worldToCanvas to convert from local to scene coords correctly

This commit is contained in:
Adam
2018-07-26 21:29:17 -04:00
parent 28520dcfe7
commit 4ecf45f19e

View File

@@ -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);
}
/**