From 48e92a2ed98e2ab16effe3b6c6f8357830dbbcd8 Mon Sep 17 00:00:00 2001 From: "jiahua.liu" Date: Fri, 6 Mar 2020 15:41:32 +0800 Subject: [PATCH] clear /lib --- .../main/kotlin/net/mamoe/mirai/console/wrapper/LibManager.kt | 3 +++ 1 file changed, 3 insertions(+) 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() }