rename getRsOrientation -> getModelOrientation inline with upstream

This commit is contained in:
ReeeMan
2021-06-29 17:42:40 +01:00
parent 6a2548b735
commit 371739976d
2 changed files with 4 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ public abstract class RSGameObjectMixin implements RSGameObject
@Override
public Shape getClickbox()
{
return Perspective.getClickbox(client, getModel(), getRsOrientation(), getLocalLocation());
return Perspective.getClickbox(client, getModel(), getModelOrientation(), getLocalLocation());
}
@Inject
@@ -113,14 +113,14 @@ public abstract class RSGameObjectMixin implements RSGameObject
int tileHeight = Perspective.getTileHeight(client, new LocalPoint(getX(), getY()), client.getPlane());
return model.getConvexHull(getX(), getY(), getRsOrientation(), tileHeight);
return model.getConvexHull(getX(), getY(), getModelOrientation(), tileHeight);
}
@Override
@Inject
public Angle getOrientation()
{
int orientation = getRsOrientation();
int orientation = getModelOrientation();
int rotation = (getFlags() >> 6) & 3;
return new Angle(rotation * 512 + orientation);
}