worldpoint: Add getRegionX() and getRegionY()

This commit is contained in:
Jordan Atwood
2019-02-18 19:11:24 -08:00
committed by Tomas Slusny
parent 1675a7e0a1
commit 39bbf2f259
2 changed files with 22 additions and 1 deletions

View File

@@ -249,7 +249,7 @@ public class GroundMarkerPlugin extends Plugin
WorldPoint worldPoint = WorldPoint.fromLocalInstance(client, localPoint);
int regionId = worldPoint.getRegionID();
GroundMarkerPoint point = new GroundMarkerPoint(regionId, worldPoint.getX() & 0x3f, worldPoint.getY() & 0x3f, client.getPlane());
GroundMarkerPoint point = new GroundMarkerPoint(regionId, worldPoint.getRegionX(), worldPoint.getRegionY(), client.getPlane());
log.debug("Updating point: {} - {}", point, worldPoint);
List<GroundMarkerPoint> points = new ArrayList<>(getPoints(regionId));