File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
common/src/main/kotlin/com/lambda/module/modules/client Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ import net.minecraft.network.NetworkSide.CLIENTBOUND
3939import net.minecraft.network.packet.c2s.login.LoginHelloC2SPacket
4040import net.minecraft.text.Text
4141import java.math.BigInteger
42+ import kotlin.jvm.optionals.getOrElse
4243
4344
4445object Network : Module(
@@ -84,7 +85,7 @@ object Network : Module(
8485 val address = ServerAddress .parse(authServer)
8586 val connection = ClientConnection (CLIENTBOUND )
8687 val resolved = AllowedAddressResolver .DEFAULT .resolve(address)
87- .map { it.inetSocketAddress }.get()
88+ .map { it.inetSocketAddress }.getOrElse { return }
8889
8990 ClientConnection .connect(resolved, mc.options.shouldUseNativeTransport(), connection)
9091 .syncUninterruptibly()
You can’t perform that action at this time.
0 commit comments