add filter change logs for gas filters (#13950)
This commit is contained in:
@@ -161,6 +161,8 @@ namespace Content.Server.Atmos.Piping.Trinary.EntitySystems
|
|||||||
if (Enum.TryParse<Gas>(args.ID.ToString(), true, out var parsedGas))
|
if (Enum.TryParse<Gas>(args.ID.ToString(), true, out var parsedGas))
|
||||||
{
|
{
|
||||||
filter.FilteredGas = parsedGas;
|
filter.FilteredGas = parsedGas;
|
||||||
|
_adminLogger.Add(LogType.AtmosFilterChanged, LogImpact.Medium,
|
||||||
|
$"{ToPrettyString(args.Session.AttachedEntity!.Value):player} set the filter on {ToPrettyString(uid):device} to {parsedGas.ToString()}");
|
||||||
DirtyUI(uid, filter);
|
DirtyUI(uid, filter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -171,6 +173,8 @@ namespace Content.Server.Atmos.Piping.Trinary.EntitySystems
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
filter.FilteredGas = null;
|
filter.FilteredGas = null;
|
||||||
|
_adminLogger.Add(LogType.AtmosFilterChanged, LogImpact.Medium,
|
||||||
|
$"{ToPrettyString(args.Session.AttachedEntity!.Value):player} set the filter on {ToPrettyString(uid):device} to none");
|
||||||
DirtyUI(uid, filter);
|
DirtyUI(uid, filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user