mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 12:46:04 +01:00
Add method to wander provider to set XY range properly
This commit is contained in:
parent
1cd8e1913e
commit
773058fa22
@ -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<Location> {
|
||||
@Override
|
||||
public void add(int idx, Location loc) {
|
||||
|
Loading…
Reference in New Issue
Block a user