diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 30a5f96..5338b2d 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -1046,17 +1046,7 @@ namespace VPet_Simulator.Windows { Topmost = true; } - if (Set.HitThrough) - { - if (!Set["v"][(gbol)"HitThrough"]) - { - Set["v"][(gbol)"HitThrough"] = true; - Set.HitThrough = false; - } - else - SetTransparentHitThrough(); - } - + //不存在就关掉 var modpath = new DirectoryInfo(ModPath + @"\0000_core\pet\vup"); if (!modpath.Exists) @@ -1516,6 +1506,17 @@ namespace VPet_Simulator.Windows HashCheck = HashCheck; + if (Set.HitThrough) + { + if (!Set["v"][(gbol)"HitThrough"]) + { + Set["v"][(gbol)"HitThrough"] = true; + Set.HitThrough = false; + } + else + SetTransparentHitThrough(); + } + if (File.Exists(ExtensionValue.BaseDirectory + @"\Tutorial.html") && Set["SingleTips"].GetDateTime("tutorial") <= new DateTime(2023, 6, 20)) { Set["SingleTips"].SetDateTime("tutorial", DateTime.Now);