From 7bf1e0141b3de651878ad5d4843cc019e0d8334c Mon Sep 17 00:00:00 2001 From: ZeroZipp Date: Sun, 5 Jul 2026 17:45:45 +0200 Subject: [PATCH] manual config --- src/main/kotlin/dev/zerozipp/agent/Client.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()