mirror of
				https://github.com/WarrenHood/MCModpackManager.git
				synced 2025-11-04 13:18:41 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "042bfb8baaa848024900bad080e64acd5d1e17ce" and "6239bb9fd8e04fe539b7e6c8c4bd2b772560cb29" have entirely different histories.
		
	
	
		
			042bfb8baa
			...
			6239bb9fd8
		
	
		
| 
						 | 
				
			
			@ -72,9 +72,6 @@ enum Commands {
 | 
			
		|||
        /// Modloader override
 | 
			
		||||
        #[arg(long, short)]
 | 
			
		||||
        modloader: Option<modpack::ModLoader>,
 | 
			
		||||
        /// Side override
 | 
			
		||||
        #[arg(long, short)]
 | 
			
		||||
        side: Option<DownloadSide>
 | 
			
		||||
    },
 | 
			
		||||
    /// Remove a mod from the modpack
 | 
			
		||||
    Remove {
 | 
			
		||||
| 
						 | 
				
			
			@ -228,7 +225,6 @@ async fn main() -> anyhow::Result<()> {
 | 
			
		|||
                locked,
 | 
			
		||||
                mc_version,
 | 
			
		||||
                modloader,
 | 
			
		||||
                side
 | 
			
		||||
            } => {
 | 
			
		||||
                let mut modpack_meta = ModpackMeta::load_from_current_directory()?;
 | 
			
		||||
                let old_modpack_meta = modpack_meta.clone();
 | 
			
		||||
| 
						 | 
				
			
			@ -246,22 +242,6 @@ async fn main() -> anyhow::Result<()> {
 | 
			
		|||
                if let Some(url) = url {
 | 
			
		||||
                    mod_meta = mod_meta.url(&url);
 | 
			
		||||
                }
 | 
			
		||||
                if let Some(side) = side {
 | 
			
		||||
                    match side {
 | 
			
		||||
                        DownloadSide::Both => {
 | 
			
		||||
                            mod_meta.server_side = Some(true);
 | 
			
		||||
                            mod_meta.client_side = Some(true);
 | 
			
		||||
                        },
 | 
			
		||||
                        DownloadSide::Server => {
 | 
			
		||||
                            mod_meta.server_side = Some(true);
 | 
			
		||||
                            mod_meta.client_side = Some(false);
 | 
			
		||||
                        },
 | 
			
		||||
                        DownloadSide::Client => {
 | 
			
		||||
                            mod_meta.server_side = Some(false);
 | 
			
		||||
                            mod_meta.client_side = Some(true);
 | 
			
		||||
                        },
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                for provider in providers.into_iter() {
 | 
			
		||||
                    mod_meta = mod_meta.provider(provider);
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -198,12 +198,8 @@ impl Modrinth {
 | 
			
		|||
            } else {
 | 
			
		||||
                None
 | 
			
		||||
            },
 | 
			
		||||
            server_side: mod_meta
 | 
			
		||||
                .server_side
 | 
			
		||||
                .unwrap_or(project.server_side != "unsupported"),
 | 
			
		||||
            client_side: mod_meta
 | 
			
		||||
                .client_side
 | 
			
		||||
                .unwrap_or(project.client_side != "unsupported"),
 | 
			
		||||
            server_side: project.server_side != "unsupported",
 | 
			
		||||
            client_side: project.client_side != "unsupported",
 | 
			
		||||
        })
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -134,7 +134,6 @@ impl Application for ManagerGUI {
 | 
			
		|||
    fn update(&mut self, message: Message) -> Command<Message> {
 | 
			
		||||
        match message {
 | 
			
		||||
            Message::SwitchView(view) => {
 | 
			
		||||
                self.current_install_status = ProfileInstallStatus::NotStarted;
 | 
			
		||||
                match &view {
 | 
			
		||||
                    ManagerView::AddProfile => {
 | 
			
		||||
                        self.profile_save_error = None;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue