mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复联机坐下动画或侧躺动画限时错误 #353
This commit is contained in:
parent
b4a8ab915e
commit
c255cc1ca1
@ -11,6 +11,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Threading;
|
||||
@ -685,10 +686,10 @@ public partial class MPFriends : WindowX, IMPFriend
|
||||
if (gi.Type != GraphType.Common)
|
||||
return false;
|
||||
}
|
||||
var img = Core.Graph.FindGraph(gi.Name, gi.Animat, Core.Save.Mode);
|
||||
if (img != null)
|
||||
var img = Core.Graph.FindGraphs(gi.Name, gi.Animat, Core.Save.Mode).FindAll(x => x.GraphInfo.Type == gi.Type);
|
||||
if (img.Count != 0)
|
||||
{
|
||||
Main.Display(img, () => DisplayAuto(gi));
|
||||
Main.Display(img[Function.Rnd.Next(img.Count)], () => DisplayAuto(gi));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user