mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-17 04:41:31 +01:00
Clear PhTree before recalculation
This commit is contained in:
parent
2383e8f551
commit
000fc19a40
@ -272,6 +272,7 @@ public class WanderWaypointProvider
|
||||
}
|
||||
|
||||
private void recalculateTree() {
|
||||
tree.clear();
|
||||
tree = PhTreeSolid.create(3);
|
||||
for (Location loc : regionCentres) {
|
||||
long[] lower = { loc.getBlockX() - xrange, loc.getBlockY() - yrange, loc.getBlockZ() - xrange };
|
||||
|
Loading…
Reference in New Issue
Block a user