diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs
index 60a0f5d..1acbd56 100644
--- a/VPet-Simulator.Windows/MainWindow.cs
+++ b/VPet-Simulator.Windows/MainWindow.cs
@@ -43,7 +43,7 @@ namespace VPet_Simulator.Windows
///
/// 版本号
///
- public int verison { get; } = 50;
+ public int verison { get; } = 90;
///
/// 版本号
///
diff --git a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj
index 6d9d131..bf573de 100644
--- a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj
+++ b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj
@@ -96,10 +96,7 @@
..\packages\CSCore.1.2.1.2\lib\net35-client\CSCore.dll
-
-
- ..\packages\Facepunch.Steamworks.2.3.3\lib\net46\Facepunch.Steamworks.Win64.dll
-
+
..\packages\LinePutScript.1.9.2\lib\net462\LinePutScript.dll
@@ -234,6 +231,11 @@
True
+
+
+ ..\packages\Facepunch.Steamworks.2.3.3\lib\net46\Facepunch.Steamworks.Win64.dll
+
+
Code
diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
index 7ac8f07..1be4c11 100644
--- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
+++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs
@@ -241,12 +241,15 @@ namespace VPet_Simulator.Windows
TryClose();
var name = mw.Core.Graph.FindName(item.Type == Food.FoodType.Drink ? GraphType.Drink : GraphType.Eat);
var ig = mw.Core.Graph.FindGraph(name, AnimatType.Single, mw.Core.Save.Mode);
- var b = mw.Main.FindDisplayBorder(ig);
- ig.Run(b, item.ImageSource, () =>
+ if (ig != null)
{
- mw.Main.EventTimer_Elapsed();
- mw.Main.DisplayToNomal();
- });
+ var b = mw.Main.FindDisplayBorder(ig);
+ ig.Run(b, item.ImageSource, () =>
+ {
+ mw.Main.EventTimer_Elapsed();
+ mw.Main.DisplayToNomal();
+ });
+ }
}
private void BtnSearch_Click(object sender, RoutedEventArgs e)