mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fix plot visit sorting
This commit is contained in:
parent
01a927ccad
commit
f5a981fda7
@ -829,8 +829,12 @@ public class PS{
|
|||||||
Collections.sort(areas, new Comparator<PlotArea>() {
|
Collections.sort(areas, new Comparator<PlotArea>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(PlotArea a, PlotArea b) {
|
public int compare(PlotArea a, PlotArea b) {
|
||||||
if (priorityArea != null && StringMan.isEqual(a.toString(), b.toString())) {
|
if (priorityArea != null) {
|
||||||
return -1;
|
if (a.equals(priorityArea)) {
|
||||||
|
return -1;
|
||||||
|
} else if (b.equals(priorityArea)) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return a.hashCode() - b.hashCode();
|
return a.hashCode() - b.hashCode();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user