From f1d0548d17b2d3901b04eb07c10e87a86246f989 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 7 May 2021 22:00:56 +0100 Subject: [PATCH] fix AnimationTriggerEvent throwing NRE when still in menu --- QSB/Animation/Player/Events/AnimationTriggerEvent.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QSB/Animation/Player/Events/AnimationTriggerEvent.cs b/QSB/Animation/Player/Events/AnimationTriggerEvent.cs index 5900c23e..a7cd3935 100644 --- a/QSB/Animation/Player/Events/AnimationTriggerEvent.cs +++ b/QSB/Animation/Player/Events/AnimationTriggerEvent.cs @@ -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(message.AttachedNetId); animationSync.VisibleAnimator.SetTrigger(message.Name); }