Make AddComponentSpecial.cs overwrite existing components. (#16897)
This commit is contained in:
parent
52302010a7
commit
0d051cb603
|
|
@ -28,7 +28,7 @@ namespace Content.Server.Jobs
|
|||
|
||||
var temp = (object) component;
|
||||
serializationManager.CopyTo(data.Component, ref temp);
|
||||
entityManager.AddComponent(mob, (Component)temp!);
|
||||
entityManager.AddComponent(mob, (Component) temp!, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue