Skip to content

Commit

Permalink
fix trait component removal
Browse files Browse the repository at this point in the history
(cherry picked from commit b2547d2)
  • Loading branch information
DEATHB4DEFEAT committed Nov 14, 2024
1 parent 8385fb1 commit 9cb60f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Traits/TraitSystem.Functions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public override void OnPlayerSpawn(EntityUid uid,
ISerializationManager serializationManager)
{
foreach (var (name, _) in Components)
entityManager.RemoveComponent(uid, (Component) factory.GetComponent(name));
entityManager.RemoveComponentDeferred(uid, factory.GetComponent(name).GetType());
}
}

Expand Down

0 comments on commit 9cb60f7

Please sign in to comment.