Predict subdermal implants (#37538)

This commit is contained in:
metalgearsloth
2025-05-18 11:55:23 +10:00
committed by GitHub
parent ac7da12f70
commit c70e06b2d7

View File

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