Make AddComponentSpecial.cs overwrite existing components. (#16897)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user