clarify auto connect no account message, #53

This commit is contained in:
Bixilon 2021-12-06 22:31:02 +01:00
parent cc3211b045
commit 4d8f8de18c
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -182,7 +182,7 @@ object Minosoft {
val address = split[0]
val version = Versions.getVersionByName(split.getOrNull(1) ?: "automatic") ?: throw IllegalArgumentException("Auto connect: Version not found!")
val accountProfile = AccountProfileManager.selected
val account = accountProfile.entries[split.getOrNull(2)] ?: accountProfile.selected ?: throw RuntimeException("Auto connect: Account not found!")
val account = accountProfile.entries[split.getOrNull(2)] ?: accountProfile.selected ?: throw RuntimeException("Auto connect: Account not found! Have you started normal before or added an account?")
if (version == Versions.AUTOMATIC_VERSION) {
Log.log(LogMessageType.AUTO_CONNECT, LogLevels.INFO) { "Pinging server to get version..." }