mixins: gain some perspective

This commit is contained in:
ThatGamerBlue
2021-03-26 19:41:02 +00:00
parent 804a3e85b8
commit 3929f89724

View File

@@ -96,7 +96,16 @@ public abstract class RSTileObjectMixin implements TileObject
@Inject
public Polygon getCanvasTilePoly()
{
return Perspective.getCanvasTilePoly(client, getLocalLocation());
int sizeX = 1;
int sizeY = 1;
if (this instanceof RSGameObject)
{
sizeX = ((RSGameObject) this).sizeX();
sizeY = ((RSGameObject) this).sizeY();
}
return Perspective.getCanvasTileAreaPoly(client, getLocalLocation(), sizeX, sizeY, getPlane(), 0);
}
@Override