mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-03-04 06:32:37 +07:00
Moved comparator to a declaration
This commit is contained in:
parent
7ed4f059d5
commit
b1d6988785
@ -90,13 +90,14 @@ public class WaygatePanel extends WidgetGroup implements Disposable {
|
||||
waypoints[level.Act].add(level);
|
||||
}
|
||||
}
|
||||
for (Array<Levels.Entry> waypoint : waypoints) {
|
||||
waypoint.sort(new Comparator<Levels.Entry>() {
|
||||
Comparator<Levels.Entry> comparator = new Comparator<Levels.Entry>() {
|
||||
@Override
|
||||
public int compare(Levels.Entry o1, Levels.Entry o2) {
|
||||
return o1.Waypoint - o2.Waypoint;
|
||||
}
|
||||
});
|
||||
};
|
||||
for (Array<Levels.Entry> waypoint : waypoints) {
|
||||
waypoint.sort(comparator);
|
||||
}
|
||||
|
||||
final Tab[] tabs = new Tab[5];
|
||||
|
Loading…
Reference in New Issue
Block a user