Skip to content

Commit

Permalink
Don't fail when creating a new mod if git is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
emd4600 committed Oct 15, 2024
1 parent a7a4d29 commit c104605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sporemodder/view/dialogs/CreateProjectUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ public void createMod() throws IOException, InterruptedException, ParserConfigur
modBundle.saveModInfo();
}

if (newModButton.isSelected()) {
// Initialize git repository
// Initialize git repository, but don't try if git is not installed
if (newModButton.isSelected() && GitHubManager.get().hasGitInstalled()) {
projectManager.initializeModBundleGit(modBundle);
}
}
Expand Down

0 comments on commit c104605

Please sign in to comment.