objectindicators: fix not marking objects when loaded on other planes

fromLocalInstance() was returning a world point using the clients plane,
however the object may not be on that, causing the plane check in
checkObjectPoints() to fail.
This commit is contained in:
Adam
2020-11-22 18:25:44 -05:00
parent 1f3634d429
commit e5b5292267
2 changed files with 18 additions and 4 deletions

View File

@@ -278,7 +278,7 @@ public class ObjectIndicatorsPlugin extends Plugin
private void checkObjectPoints(TileObject object)
{
final WorldPoint worldPoint = WorldPoint.fromLocalInstance(client, object.getLocalLocation());
final WorldPoint worldPoint = WorldPoint.fromLocalInstance(client, object.getLocalLocation(), object.getPlane());
final Set<ObjectPoint> objectPoints = points.get(worldPoint.getRegionID());
if (objectPoints == null)