mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 20:55:44 +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;
|
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> {
|
private class RecalculateList extends ForwardingList<Location> {
|
||||||
@Override
|
@Override
|
||||||
public void add(int idx, Location loc) {
|
public void add(int idx, Location loc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user