diff --git a/main/src/main/java/net/citizensnpcs/trait/waypoint/WanderWaypointProvider.java b/main/src/main/java/net/citizensnpcs/trait/waypoint/WanderWaypointProvider.java index 2be736163..7f4be1544 100644 --- a/main/src/main/java/net/citizensnpcs/trait/waypoint/WanderWaypointProvider.java +++ b/main/src/main/java/net/citizensnpcs/trait/waypoint/WanderWaypointProvider.java @@ -283,6 +283,14 @@ public class WanderWaypointProvider this.paused = paused; } + public void setXYRange(int xrange, int yrange) { + this.xrange = xrange; + this.yrange = yrange; + if (currentGoal != null) { + currentGoal.setXYRange(xrange, yrange); + } + } + private class RecalculateList extends ForwardingList { @Override public void add(int idx, Location loc) {