mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复鼠标点击穿透导致的空引用异常
This commit is contained in:
parent
e4206e5a0f
commit
87d148a41b
@ -150,17 +150,6 @@ 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");
|
||||
@ -881,6 +870,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);
|
||||
|
Loading…
Reference in New Issue
Block a user