Allow gas analyzers to continue operation after the user moves without a target. (#11555)
This commit is contained in:
parent
373261a4ee
commit
636694e73d
|
|
@ -81,7 +81,10 @@ namespace Content.Server.Atmos.EntitySystems
|
|||
{
|
||||
component.Target = target;
|
||||
component.User = user;
|
||||
component.LastPosition = Transform(target ?? user).Coordinates;
|
||||
if (target != null)
|
||||
component.LastPosition = Transform(target.Value).Coordinates;
|
||||
else
|
||||
component.LastPosition = null;
|
||||
component.Enabled = true;
|
||||
Dirty(component);
|
||||
UpdateAppearance(component);
|
||||
|
|
|
|||
Loading…
Reference in New Issue