]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Predict subdermal implants (#37538)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 18 May 2025 01:55:23 +0000 (11:55 +1000)
committerGitHub <noreply@github.com>
Sun, 18 May 2025 01:55:23 +0000 (21:55 -0400)
Content.Shared/Implants/SharedSubdermalImplantSystem.cs

index e23357448f1c6d3f444c633539b7c4844fedb30f..f874c8d6a8c0394e792538d8cc9949cac416b509 100644 (file)
@@ -38,7 +38,7 @@ public abstract class SharedSubdermalImplantSystem : EntitySystem
 
     private void OnInsert(EntityUid uid, SubdermalImplantComponent component, EntGotInsertedIntoContainerMessage args)
     {
-        if (component.ImplantedEntity == null || _net.IsClient)
+        if (component.ImplantedEntity == null)
             return;
 
         if (!string.IsNullOrWhiteSpace(component.ImplantAction))
@@ -54,7 +54,7 @@ public abstract class SharedSubdermalImplantSystem : EntitySystem
                 if (_tag.HasTag(implant, MicroBombTag))
                 {
                     _container.Remove(implant, implantContainer);
-                    QueueDel(implant);
+                    PredictedQueueDel(implant);
                 }
             }
         }