We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bb85ba commit 611fbf1Copy full SHA for 611fbf1
src/Entities/Misc/GlowController.cs
@@ -62,13 +62,10 @@ private static void IL_EntityList_UpdateLists(ILContext il)
62
63
cursor.Emit(OpCodes.Ldarg_0);
64
cursor.EmitDelegate<Func<EntityList, GlowController[]>>(entityList =>
65
- {
66
- // not sure whether the tracker will work here so doing this just in case
67
- IEnumerable<Entity> allEntities = entityList.Concat(entityList.ToAdd);
68
- return allEntities.Where(entity => entity is GlowController)
69
- .Cast<GlowController>()
70
- .ToArray();
71
- });
+ entityList.Scene.Tracker.GetEntities<GlowController>()
+ .Cast<GlowController>()
+ .ToArray()
+ );
72
cursor.Emit(OpCodes.Stloc, allGlowControllers);
73
74
if (!cursor.TryGotoNextBestFit(MoveType.After,
0 commit comments