diff --git a/src/sporemodder/view/dialogs/CreateProjectUI.java b/src/sporemodder/view/dialogs/CreateProjectUI.java index 437917e..b7a7881 100644 --- a/src/sporemodder/view/dialogs/CreateProjectUI.java +++ b/src/sporemodder/view/dialogs/CreateProjectUI.java @@ -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); } }