Replace EntityUid parsing with NetEntity (#23474)
* Replace EntityUid parsing with NetEntity * fix * Other changes required for arch * And anothher
This commit is contained in:
@@ -52,7 +52,8 @@ public sealed class RandomHumanoidSystem : EntitySystem
|
||||
{
|
||||
var comp = (Component) _serialization.CreateCopy(entry.Component, notNullableOverride: true);
|
||||
comp.Owner = humanoid; // This .owner must survive for now.
|
||||
EntityManager.AddComponent(humanoid, comp, true);
|
||||
EntityManager.RemoveComponent(humanoid, comp.GetType());
|
||||
EntityManager.AddComponent(humanoid, comp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user