Replace EntityUid parsing with NetEntity (#23474)
* Replace EntityUid parsing with NetEntity * fix * Other changes required for arch * And anothher
This commit is contained in:
@@ -199,8 +199,8 @@ public sealed partial class ArtifactSystem
|
||||
|
||||
var temp = (object) comp;
|
||||
_serialization.CopyTo(entry.Component, ref temp);
|
||||
|
||||
EntityManager.AddComponent(uid, (Component) temp!, true);
|
||||
EntityManager.RemoveComponent(uid, temp!.GetType());
|
||||
EntityManager.AddComponent(uid, (Component) temp!);
|
||||
}
|
||||
|
||||
node.Discovered = true;
|
||||
@@ -234,7 +234,8 @@ public sealed partial class ArtifactSystem
|
||||
comp.Owner = uid;
|
||||
var temp = (object) comp;
|
||||
_serialization.CopyTo(entry, ref temp);
|
||||
EntityManager.AddComponent(uid, (Component) temp!, true);
|
||||
EntityManager.RemoveComponent(uid, temp!.GetType());
|
||||
EntityManager.AddComponent(uid, (Component) temp);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user