From 05ae563e29d53a857188e429357d2908894d2037 Mon Sep 17 00:00:00 2001 From: eoineoineoin Date: Thu, 17 Apr 2025 12:52:38 +0100 Subject: [PATCH] Fix exception when telepad system plays beam animations (#33010) Fix exception when order sent to telepad Co-authored-by: Milon --- Content.Client/Cargo/Systems/CargoSystem.Telepad.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Content.Client/Cargo/Systems/CargoSystem.Telepad.cs b/Content.Client/Cargo/Systems/CargoSystem.Telepad.cs index 312c4e8019..99f9b34387 100644 --- a/Content.Client/Cargo/Systems/CargoSystem.Telepad.cs +++ b/Content.Client/Cargo/Systems/CargoSystem.Telepad.cs @@ -75,10 +75,9 @@ public sealed partial class CargoSystem switch (state) { case CargoTelepadState.Teleporting: - if (_player.HasRunningAnimation(uid, TelepadBeamKey)) - return; - _player.Stop(uid, player, TelepadIdleKey); - _player.Play((uid, player), CargoTelepadBeamAnimation, TelepadBeamKey); + _player.Stop((uid, player), TelepadIdleKey); + if (!_player.HasRunningAnimation(uid, TelepadBeamKey)) + _player.Play((uid, player), CargoTelepadBeamAnimation, TelepadBeamKey); break; case CargoTelepadState.Unpowered: sprite.LayerSetVisible(CargoTelepadLayers.Beam, false); -- 2.51.2