mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-24 02:40:13 +08:00
fix class loader
This commit is contained in:
parent
af48b74786
commit
3cbbacfceb
@ -137,7 +137,7 @@ object WrapperMain {
|
||||
val loader = MiraiClassLoader(
|
||||
CoreUpdater.getProtocolLib()!!,
|
||||
ConsoleUpdater.getFile()!!,
|
||||
this.javaClass.classLoader
|
||||
null
|
||||
)
|
||||
|
||||
loader.loadClass("net.mamoe.mirai.BotFactoryJvm")
|
||||
@ -158,7 +158,7 @@ object WrapperMain {
|
||||
private class MiraiClassLoader(
|
||||
protocol: File,
|
||||
console: File,
|
||||
parent: ClassLoader
|
||||
parent: ClassLoader?
|
||||
): URLClassLoader(arrayOf(
|
||||
protocol.toURI().toURL(),
|
||||
console.toURI().toURL()
|
||||
|
Loading…
Reference in New Issue
Block a user