fixed animtriggerevent

This commit is contained in:
Mister_Nebula 2021-05-19 11:17:19 +01:00
parent 615fddf7e1
commit abc73b8629

View File

@ -21,11 +21,11 @@ namespace QSB.Animation.Player.Events
public override void OnReceiveRemote(bool server, AnimationTriggerMessage message)
{
if (!QSBCore.WorldObjectsReady)
var animationSync = QSBPlayerManager.GetSyncObject<AnimationSync>(message.AttachedNetId);
if (!QSBCore.WorldObjectsReady || animationSync != null)
{
return;
}
var animationSync = QSBPlayerManager.GetSyncObject<AnimationSync>(message.AttachedNetId);
animationSync.VisibleAnimator.SetTrigger(message.Name);
}
}