@@ -25,7 +25,7 @@ import com.lambda.event.events.ClientEvent
2525import com.lambda.event.events.ConnectionEvent
2626import com.lambda.event.events.ConnectionEvent.Connect.Login.EncryptionResponse
2727import com.lambda.event.listener.UnsafeListener.Companion.listenUnsafe
28- import com.lambda.event.listener.UnsafeListener.Companion.listenUnsafeConcurrently
28+ import com.lambda.event.listener.UnsafeListener.Companion.listenConcurrentlyUnsafe
2929import com.lambda.network.NetworkManager.updateToken
3030import com.lambda.network.api.v1.endpoints.login
3131import com.lambda.util.StringUtils.hash
@@ -58,7 +58,7 @@ object LambdaAPI : Configurable(LambdaConfig) {
5858 private var hash: String? = null
5959
6060 init {
61- listenUnsafeConcurrently <ClientEvent .Startup > { authenticate() }
61+ listenConcurrentlyUnsafe <ClientEvent .Startup > { authenticate() }
6262
6363 listenUnsafe<EncryptionResponse > { event ->
6464 if (event.secretKey.isDestroyed) return @listenUnsafe
@@ -70,14 +70,14 @@ object LambdaAPI : Configurable(LambdaConfig) {
7070 hash = BigInteger (computed).toString(16 )
7171 }
7272
73- listenUnsafeConcurrently <ConnectionEvent .Connect .Post > {
73+ listenConcurrentlyUnsafe <ConnectionEvent .Connect .Post > {
7474 // FixMe: If the player have the properties but are invalid this doesn't work
75- if (NetworkManager .isValid || mc.gameProfile.isOffline) return @listenUnsafeConcurrently
75+ if (NetworkManager .isValid || mc.gameProfile.isOffline) return @listenConcurrentlyUnsafe
7676
7777 // If we log in right as the client responds to the encryption request, we start
7878 // a race condition where the game server haven't acknowledged the packets
7979 // and posted to the sessionserver api
80- login(mc.session.username, hash ? : return @listenUnsafeConcurrently )
80+ login(mc.session.username, hash ? : return @listenConcurrentlyUnsafe )
8181 .onSuccess { updateToken(it) }
8282 .onFailure { LOG .warn(it) }
8383 }
0 commit comments