diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java index 26ff3bc86..dc7e913b6 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java @@ -101,6 +101,11 @@ public final class Main { public static void main(String[] args) throws IOException { { + if (new File("").getAbsolutePath().contains("!")) { + MessageBox.show("HMCL cannot run at such path that contains '!'"); + return; + } + try { File file = new File("hmcl.log").getAbsoluteFile(); if (!file.exists() && !file.createNewFile()) diff --git a/settings.gradle b/settings.gradle index ba5f82c9c..81398a812 100755 --- a/settings.gradle +++ b/settings.gradle @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see {http://www.gnu.org/licenses/}. */ -rootProject.name = 'Hello Minecraft!' +rootProject.name = 'Hello Minecraft' // Find the directories containing a "build.gradle" file in the root directory // of the project. That is, every directory containing a "build.gradle" will