]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Skeletons leave glove fiber evidence (#37077)
authorthemias <89101928+themias@users.noreply.github.com>
Wed, 30 Apr 2025 19:56:28 +0000 (15:56 -0400)
committerGitHub <noreply@github.com>
Wed, 30 Apr 2025 19:56:28 +0000 (15:56 -0400)
Fix skeleton forensics

Content.Server/Forensics/Systems/ForensicsSystem.cs

index 2c75cc3b1902654b43a0aa9537c91b804044392b..ec4683460bc61353058debebf4ab658a31a361ee 100644 (file)
@@ -19,6 +19,7 @@ using Content.Shared.Weapons.Melee.Events;
 using Robust.Shared.Random;
 using Content.Shared.Verbs;
 using Robust.Shared.Utility;
+using Content.Shared.Hands.Components;
 
 namespace Content.Server.Forensics
 {
@@ -32,7 +33,7 @@ namespace Content.Server.Forensics
 
         public override void Initialize()
         {
-            SubscribeLocalEvent<FingerprintComponent, ContactInteractionEvent>(OnInteract);
+            SubscribeLocalEvent<HandsComponent, ContactInteractionEvent>(OnInteract);
             SubscribeLocalEvent<FingerprintComponent, MapInitEvent>(OnFingerprintInit, after: new[] { typeof(BloodstreamSystem) });
             // The solution entities are spawned on MapInit as well, so we have to wait for that to be able to set the DNA in the bloodstream correctly without ResolveSolution failing
             SubscribeLocalEvent<DnaComponent, MapInitEvent>(OnDNAInit, after: new[] { typeof(BloodstreamSystem) });
@@ -60,7 +61,7 @@ namespace Content.Server.Forensics
             }
         }
 
-        private void OnInteract(EntityUid uid, FingerprintComponent component, ContactInteractionEvent args)
+        private void OnInteract(EntityUid uid, HandsComponent component, ContactInteractionEvent args)
         {
             ApplyEvidence(uid, args.Other);
         }