use clearly named method
parent
130890b9cc
commit
7c1a798b01
|
@ -486,7 +486,7 @@ namespace Encompass
|
|||
/// </exception>
|
||||
protected void AddComponent<TComponent>(Entity entity, TComponent component) where TComponent : struct, IComponent
|
||||
{
|
||||
if (!_newlyCreatedEntities.Contains(entity.ID))
|
||||
if (!EntityCreatedThisFrame(entity.ID))
|
||||
{
|
||||
throw new IllegalWriteException("AddComponent used on Entity that was not created in this context. Use SetComponent instead.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue