[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;