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