Skip to content

Commit

Permalink
mcl-addon: 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Nov 12, 2022
1 parent 936e132 commit d1ce0bc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/kotlin/org/itxtech/mcl/addon/fix.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import net.mamoe.mirai.console.ConsoleFrontEndImplementation
import net.mamoe.mirai.console.MiraiConsoleImplementation
import net.mamoe.mirai.console.data.Value
import net.mamoe.mirai.console.data.findBackingFieldValue
import net.mamoe.mirai.console.internal.data.builtins.*
import net.mamoe.mirai.console.internal.data.builtins.PluginDependenciesConfig
import net.mamoe.mirai.console.terminal.consoleLogger
import net.mamoe.mirai.console.util.ConsoleExperimentalApi
import org.itxtech.mcl.Loader
Expand All @@ -22,9 +22,7 @@ fun fixMiraiConsoleLoader() {
change = true
}
val mavenRepo = arrayListOf(
"https://maven.aliyun.com/repository/public",
"https://repo.huaweicloud.com/repository/maven",
"https://repo1.maven.org/maven2"
"https://maven.aliyun.com/repository/public"

This comment has been minimized.

Copy link
@cssxsh

cssxsh Nov 12, 2022

Contributor

为什么要删掉

"https://repo.huaweicloud.com/repository/maven",
"https://repo1.maven.org/maven2"

你引入了一个 bug

)
if (loader.config.mavenRepo.singleOrNull() == "https://maven.aliyun.com/repository/public") {
loader.config.mavenRepo = mavenRepo
Expand Down Expand Up @@ -104,4 +102,4 @@ fun fixMiraiConsole() {
}
configStorageForBuiltIns.store(consoleDataScope.configHolder, config)
}
}
}

0 comments on commit d1ce0bc

Please sign in to comment.