mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 20:05:02 -04:00
clarify auto connect no account message, #53
This commit is contained in:
parent
cc3211b045
commit
4d8f8de18c
@ -182,7 +182,7 @@ object Minosoft {
|
|||||||
val address = split[0]
|
val address = split[0]
|
||||||
val version = Versions.getVersionByName(split.getOrNull(1) ?: "automatic") ?: throw IllegalArgumentException("Auto connect: Version not found!")
|
val version = Versions.getVersionByName(split.getOrNull(1) ?: "automatic") ?: throw IllegalArgumentException("Auto connect: Version not found!")
|
||||||
val accountProfile = AccountProfileManager.selected
|
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) {
|
if (version == Versions.AUTOMATIC_VERSION) {
|
||||||
Log.log(LogMessageType.AUTO_CONNECT, LogLevels.INFO) { "Pinging server to get version..." }
|
Log.log(LogMessageType.AUTO_CONNECT, LogLevels.INFO) { "Pinging server to get version..." }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user