mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-10-31 08:29:42 +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>() {
|
||||
@Override
|
||||
public int compare(PlotArea a, PlotArea b) {
|
||||
if (priorityArea != null && StringMan.isEqual(a.toString(), b.toString())) {
|
||||
if (priorityArea != null) {
|
||||
if (a.equals(priorityArea)) {
|
||||
return -1;
|
||||
} else if (b.equals(priorityArea)) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return a.hashCode() - b.hashCode();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user