diff --git a/src/main/kotlin/dev/zerozipp/agent/Client.kt b/src/main/kotlin/dev/zerozipp/agent/Client.kt index 938f5a9..4f6105b 100644 --- a/src/main/kotlin/dev/zerozipp/agent/Client.kt +++ b/src/main/kotlin/dev/zerozipp/agent/Client.kt @@ -8,9 +8,7 @@ import java.io.File private var mods = modules() private fun modules(): List = 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()