From 824461ed9472eea489aeba81db02519cc1d2c434 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:50:23 +1000 Subject: [PATCH] Fix paused pickup animations lingering (#19325) --- Content.Client/Animations/ReusableAnimations.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Client/Animations/ReusableAnimations.cs b/Content.Client/Animations/ReusableAnimations.cs index 504b81e734..8c90c5101f 100644 --- a/Content.Client/Animations/ReusableAnimations.cs +++ b/Content.Client/Animations/ReusableAnimations.cs @@ -16,6 +16,11 @@ namespace Content.Client.Animations if (entMan.Deleted(entity) || !initialPosition.IsValid(entMan)) return; + var metadata = entMan.GetComponent(entity); + + if (entMan.IsPaused(entity, metadata)) + return; + var animatableClone = entMan.SpawnEntity("clientsideclone", initialPosition); string val = entMan.GetComponent(entity).EntityName; entMan.GetComponent(animatableClone).EntityName = val;