Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -102,7 +102,7 @@ public sealed class PayloadSystem : EntitySystem
|
||||
|
||||
var temp = (object) component;
|
||||
_serializationManager.CopyTo(data.Component, ref temp);
|
||||
EntityManager.AddComponent(uid, (Component) temp!);
|
||||
AddComp(uid, (Component) temp!);
|
||||
|
||||
trigger.GrantedComponents.Add(registration.Type);
|
||||
}
|
||||
@@ -117,7 +117,7 @@ public sealed class PayloadSystem : EntitySystem
|
||||
|
||||
foreach (var type in trigger.GrantedComponents)
|
||||
{
|
||||
EntityManager.RemoveComponent(uid, type);
|
||||
RemComp(uid, type);
|
||||
}
|
||||
|
||||
trigger.GrantedComponents.Clear();
|
||||
|
||||
Reference in New Issue
Block a user