public void Run() { foreach (var i in filter) { for (int k = 0; k < runtimeData.EscapedPlayers.Count; ++k) { var e = world.NewEntity(); ref var spawn = ref e.Set <PlayerSpawnComponent>(); spawn.Stats = runtimeData.EscapedPlayers[k]; spawn.MapIndex = 0; } runtimeData.ClearEscapedPlayers(); filter.GetEntity(i).Destroy(); }