[1 line] fix bad check in beam system (#12206)

This commit is contained in:
Rane
2022-10-25 04:53:32 -04:00
committed by GitHub
parent c3a92f26e6
commit 05e9f6acaa

View File

@@ -136,7 +136,7 @@ public sealed class BeamSystem : SharedBeamSystem
/// <param name="controller"></param>
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;