manual config
This commit is contained in:
@@ -8,9 +8,7 @@ import java.io.File
|
||||
private var mods = modules()
|
||||
|
||||
private fun modules(): List<Module> = runCatching {
|
||||
val source = base.java.protectionDomain.codeSource
|
||||
val location = File(source.location.toURI())
|
||||
val mods = File(location.parentFile, "mods")
|
||||
val mods = File(System.getenv("mods") ?: "mods")
|
||||
val loader = base.java.classLoader
|
||||
|
||||
if(!mods.isDirectory) return emptyList()
|
||||
|
||||
Reference in New Issue
Block a user