Fix ground markers getting set at wrong position

This commit is contained in:
ShaunDreclin
2018-09-03 14:54:52 -04:00
parent 5f2432eb6d
commit 0b6ea39e41

View File

@@ -311,7 +311,7 @@ public class GroundMarkerPlugin extends Plugin
return;
}
WorldPoint worldPoint = WorldPoint.fromLocalInstance(client, client.getLocalPlayer().getLocalLocation());
WorldPoint worldPoint = WorldPoint.fromLocalInstance(client, localPoint);
int regionId = worldPoint.getRegionID();
GroundMarkerPoint point = new GroundMarkerPoint(regionId, worldPoint.getX() & 0x3f, worldPoint.getY() & 0x3f, client.getPlane());