Fix exception when telepad system plays beam animations (#33010)
Fix exception when order sent to telepad Co-authored-by: Milon <milonpl.git@proton.me>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user