mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Merge pull request #252 from Shadowrs/feature/allow-dupe-config-names
Fix ServerDesc comparitor to allow duplicate server names
This commit is contained in:
@@ -37,6 +37,9 @@ public class ServerDescription implements Comparable<ServerDescription> {
|
||||
|
||||
@Override
|
||||
public int compareTo(ServerDescription o) {
|
||||
if (this.getServerName().equalsIgnoreCase(o.getServerName())) {
|
||||
return 1;
|
||||
}
|
||||
return this.getServerName().compareTo(o.getServerName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user