Make AddComponentSpecial.cs overwrite existing components. (#16897)

This commit is contained in:
Nemanja 2023-05-31 05:06:25 -04:00 committed by GitHub
parent 52302010a7
commit 0d051cb603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}