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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user