runelite-mixins: correct worldToCanvas arguments

The 'plane' is no longer actually a z offset
This commit is contained in:
Adam
2018-07-27 17:52:01 -04:00
parent 045146b122
commit 6c7ea1f834
2 changed files with 4 additions and 0 deletions

View File

@@ -253,6 +253,7 @@ public abstract class RSModelMixin implements RSModel
Point p = Perspective.worldToCanvas(client,
localX - v.getX(),
localY - v.getZ(),
client.getPlane(),
-v.getY());
if (p != null)
{

View File

@@ -132,16 +132,19 @@ public abstract class RSPlayerMixin implements RSPlayer
Point x = Perspective.worldToCanvas(client,
localX - vx.getX(),
localY - vx.getZ(),
client.getPlane(),
-vx.getY());
Point y = Perspective.worldToCanvas(client,
localX - vy.getX(),
localY - vy.getZ(),
client.getPlane(),
-vy.getY());
Point z = Perspective.worldToCanvas(client,
localX - vz.getX(),
localY - vz.getZ(),
client.getPlane(),
-vz.getY());
int xx[] =