mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
fix: cleaning evidence off a person no longer reveals their true identity (#42868)
fix cleaning evidence revealing your true identity
This commit is contained in:
@@ -14,6 +14,7 @@ using Content.Shared.Forensics;
|
||||
using Content.Shared.Forensics.Components;
|
||||
using Content.Shared.Forensics.Systems;
|
||||
using Content.Shared.Gibbing;
|
||||
using Content.Shared.IdentityManagement;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Content.Shared.Inventory;
|
||||
@@ -217,7 +218,7 @@ namespace Content.Server.Forensics
|
||||
{
|
||||
if (!TryComp<ForensicsComponent>(target, out var forensicsComp))
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensics-cleaning-cannot-clean", ("target", target)), user, user, PopupType.MediumCaution);
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensics-cleaning-cannot-clean", ("target", Identity.Entity(target, EntityManager))), user, user, PopupType.MediumCaution);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -238,13 +239,13 @@ namespace Content.Server.Forensics
|
||||
|
||||
_doAfterSystem.TryStartDoAfter(doAfterArgs);
|
||||
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensics-cleaning", ("target", target)), user, user);
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensics-cleaning", ("target", Identity.Entity(target, EntityManager))), user, user);
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensics-cleaning-cannot-clean", ("target", target)), user, user, PopupType.MediumCaution);
|
||||
_popupSystem.PopupEntity(Loc.GetString("forensics-cleaning-cannot-clean", ("target", Identity.Entity(target, EntityManager))), user, user, PopupType.MediumCaution);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user