manual config
This commit is contained in:
1 parent
2670cd188a
commit
7bf1e0141b
1 file changed
+1
-3
@@ -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