mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
fix: 清除模块加载缓存导致library中的文件变动后无法生效 (#2525)
This commit is contained in:
@@ -92,6 +92,8 @@ public class ScriptProject
|
||||
{
|
||||
if (Manifest.Library.Length != 0)
|
||||
{
|
||||
// 清除Document缓存
|
||||
DocumentLoader.Default.DiscardCachedDocuments();
|
||||
await (Task)engine.Evaluate(new DocumentInfo { Category = ModuleCategory.Standard }, code);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user