mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 10:55:01 -04:00
fix auto connecting
Some debug code stayed in there for singleplayer...
This commit is contained in:
parent
2569df18c4
commit
3727368135
@ -11,7 +11,7 @@ Minosoft is an open source minecraft client, written from scratch in kotlin (and
|
|||||||
<h2>Notice: I am *not* responsible for anti cheat banned accounts, this project ~~is heavily in development~~!</h2>
|
<h2>Notice: I am *not* responsible for anti cheat banned accounts, this project ~~is heavily in development~~!</h2>
|
||||||
|
|
||||||
This project is not actively developed anymore. This is due to time reasons and newer minecraft updates are getting larger and larger and I honestly can't keep up.
|
This project is not actively developed anymore. This is due to time reasons and newer minecraft updates are getting larger and larger and I honestly can't keep up.
|
||||||
I will still bring up fixes from time to time, might do some changes but don't accept too much. I am still happy to receive feedback and contributions are always welcome.
|
I will still bring up fixes from time to time, might do some changes but don't expect too much. I am still happy to receive feedback and contributions are always welcome.
|
||||||
|
|
||||||
## Feature overview
|
## Feature overview
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ import de.bixilon.minosoft.protocol.network.session.play.PlaySessionStates.Compa
|
|||||||
import de.bixilon.minosoft.protocol.network.session.status.StatusSession
|
import de.bixilon.minosoft.protocol.network.session.status.StatusSession
|
||||||
import de.bixilon.minosoft.protocol.versions.Version
|
import de.bixilon.minosoft.protocol.versions.Version
|
||||||
import de.bixilon.minosoft.protocol.versions.Versions
|
import de.bixilon.minosoft.protocol.versions.Versions
|
||||||
|
import de.bixilon.minosoft.util.DNSUtil
|
||||||
import de.bixilon.minosoft.util.logging.Log
|
import de.bixilon.minosoft.util.logging.Log
|
||||||
import de.bixilon.minosoft.util.logging.LogLevels
|
import de.bixilon.minosoft.util.logging.LogLevels
|
||||||
import de.bixilon.minosoft.util.logging.LogMessageType
|
import de.bixilon.minosoft.util.logging.LogMessageType
|
||||||
@ -94,7 +95,7 @@ object AutoConnect {
|
|||||||
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?")
|
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?")
|
||||||
|
|
||||||
Log.log(LogMessageType.AUTO_CONNECT, LogLevels.INFO) { "Checking account..." }
|
Log.log(LogMessageType.AUTO_CONNECT, LogLevels.INFO) { "Checking account..." }
|
||||||
// account.tryCheck(null)
|
account.tryCheck(null)
|
||||||
|
|
||||||
if (version == Versions.AUTOMATIC) {
|
if (version == Versions.AUTOMATIC) {
|
||||||
Log.log(LogMessageType.AUTO_CONNECT, LogLevels.INFO) { "Pinging server to get version..." }
|
Log.log(LogMessageType.AUTO_CONNECT, LogLevels.INFO) { "Pinging server to get version..." }
|
||||||
@ -105,8 +106,8 @@ object AutoConnect {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
debug(version, account)
|
// debug(version, account)
|
||||||
|
|
||||||
// autoConnect(DNSUtil.resolveServerAddress(address).first(), version, account)
|
autoConnect(DNSUtil.resolveServerAddress(address).first(), version, account)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user