Predict subdermal implants (#37538)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user