Chain link fencing (#18956)

This commit is contained in:
Kara
2023-08-10 07:16:25 -07:00
committed by GitHub
parent c10b01c465
commit baddcf1b26
21 changed files with 587 additions and 4 deletions

View File

@@ -111,11 +111,11 @@ public sealed class DoorSystem : SharedDoorSystem
}
break;
case DoorState.Opening:
if (animPlayer != null && comp.OpeningAnimation != default)
if (animPlayer != null && comp.OpeningAnimationTime != 0.0)
_animationSystem.Play(uid, animPlayer, (Animation)comp.OpeningAnimation, DoorComponent.AnimationKey);
break;
case DoorState.Closing:
if (animPlayer != null && comp.ClosingAnimation != default && comp.CurrentlyCrushing.Count == 0)
if (animPlayer != null && comp.ClosingAnimationTime != 0.0 && comp.CurrentlyCrushing.Count == 0)
_animationSystem.Play(uid, animPlayer, (Animation)comp.ClosingAnimation, DoorComponent.AnimationKey);
break;
case DoorState.Denying: