Skip to content

Commit

Permalink
Fix ecs behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed May 3, 2021
1 parent fcf65d3 commit 3400bb7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ public static RegistrationBuilder RegisterSystemFromWorld<T>(this IContainerBuil
if (system is null)
throw new ArgumentException($"{typeof(T).FullName} is not in the world {world}");

return builder.RegisterInstance(system)
.As(typeof(ComponentSystemBase))
.AsSelf();
return builder.RegisterComponent(system)
.As(typeof(ComponentSystemBase), typeof(T));
}

// Use custom world
Expand Down

0 comments on commit 3400bb7

Please sign in to comment.