Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 23:30:26 +01:00
Don't crash when attempt servers order is empty, return empty optional instead (#576)
Dieser Commit ist enthalten in:
Ursprung
d1135bd190
Commit
ea07c6661a
@ -690,7 +690,12 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
}
|
||||
|
||||
if (serversToTry.isEmpty()) {
|
||||
serversToTry = server.getConfiguration().getAttemptConnectionOrder();
|
||||
List<String> connOrder = server.getConfiguration().getAttemptConnectionOrder();
|
||||
if (connOrder.isEmpty()) {
|
||||
return Optional.empty();
|
||||
} else {
|
||||
serversToTry = connOrder;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = tryIndex; i < serversToTry.size(); i++) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren