Skip to content

Commit c104605

Browse files
committed
Don't fail when creating a new mod if git is not installed
1 parent a7a4d29 commit c104605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sporemodder/view/dialogs/CreateProjectUI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ public void createMod() throws IOException, InterruptedException, ParserConfigur
136136
modBundle.saveModInfo();
137137
}
138138

139-
if (newModButton.isSelected()) {
140-
// Initialize git repository
139+
// Initialize git repository, but don't try if git is not installed
140+
if (newModButton.isSelected() && GitHubManager.get().hasGitInstalled()) {
141141
projectManager.initializeModBundleGit(modBundle);
142142
}
143143
}

0 commit comments

Comments
 (0)