use clearly named method
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

pull/2/head
Evan Hemsley 2020-03-18 14:23:08 -07:00
parent 130890b9cc
commit 7c1a798b01
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}