diff --git a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/LibManager.kt b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/LibManager.kt index 7d4d250d7..c8d17bc6a 100644 --- a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/LibManager.kt +++ b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/LibManager.kt @@ -20,6 +20,9 @@ object LibManager{ val dynamic = false; fun clearLibs(){ + if(!dynamic){ + return; + } libPath.listFiles()?.forEach { it.delete() }