adjust the locking for animations maybe fix the bug?

This commit is contained in:
Madpeterz 2020-12-29 18:52:38 +00:00
parent 57526c862c
commit 496831e428

View file

@ -19,13 +19,14 @@ namespace BSB.bottypes
}
public override void ResetAnimations()
{
{
List<UUID> copyAnyimations = active_animations;
foreach (UUID ani in copyAnyimations)
{
Client.Self.AnimationStop(ani, true);
}
lock (active_animations)
{
foreach (UUID ani in active_animations)
{
Client.Self.AnimationStop(ani, true);
}
active_animations.Clear();
}
}