[1 line] fix bad check in beam system (#12206)
This commit is contained in:
@@ -136,7 +136,7 @@ public sealed class BeamSystem : SharedBeamSystem
|
|||||||
/// <param name="controller"></param>
|
/// <param name="controller"></param>
|
||||||
public void TryCreateBeam(EntityUid user, EntityUid target, string bodyPrototype, string? bodyState = null, string shader = "unshaded", EntityUid? controller = null)
|
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;
|
return;
|
||||||
|
|
||||||
var userMapPos = Transform(user).MapPosition;
|
var userMapPos = Transform(user).MapPosition;
|
||||||
|
|||||||
Reference in New Issue
Block a user