Allow gas analyzers to continue operation after the user moves without a target. (#11555)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user