修复鼠标穿透菜单导致的空引用异常(针对多开) by 1582421598

This commit is contained in:
ZouJin 2023-10-20 21:14:43 +08:00
parent 8fa8d99de3
commit 70c5150f94

View File

@ -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);