From 05e9f6acaa93d562b687793e1cdb42d3b18f8366 Mon Sep 17 00:00:00 2001 From: Rane <60792108+Elijahrane@users.noreply.github.com> Date: Tue, 25 Oct 2022 04:53:32 -0400 Subject: [PATCH] [1 line] fix bad check in beam system (#12206) --- Content.Server/Beam/BeamSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Beam/BeamSystem.cs b/Content.Server/Beam/BeamSystem.cs index 73d44a24d4..08bf626aec 100644 --- a/Content.Server/Beam/BeamSystem.cs +++ b/Content.Server/Beam/BeamSystem.cs @@ -136,7 +136,7 @@ public sealed class BeamSystem : SharedBeamSystem /// public void TryCreateBeam(EntityUid user, EntityUid target, string bodyPrototype, string? bodyState = null, string shader = "unshaded", EntityUid? controller = null) { - if (!user.IsValid() || !target.IsValid()) + if (Deleted(user) || Deleted(target)) return; var userMapPos = Transform(user).MapPosition;