Sould break the priority lookup after server found

If the list would look like this

- test1 -> 1.8 -> ServerKickEvent cancelled -> reason set to "outdated"
- test2 -> 1.8
- test3 -> 1.9

and a player joins with version 1.8 he would never be connected to test2 because the server test2 is not equal to test1 and the server test3 is not equal to test1.
So test3 is the last in the while loop and would be used also if another server with higher priority matches the requirements.
This commit is contained in:
Zartec 2016-03-03 18:27:47 +01:00 committed by md_5
parent a7664a5559
commit 903ada06f0

View File

@ -243,6 +243,7 @@ public final class UserConnection implements ProxiedPlayer
if ( !Objects.equal( currentTarget, candidate ) )
{
next = candidate;
break;
}
}