fix AnimationTriggerEvent throwing NRE when still in menu

This commit is contained in:
Mister_Nebula 2021-05-07 22:00:56 +01:00
parent b84460571f
commit f1d0548d17

View File

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