From 3b400ac3f360329b8f8b7390b11d52e4a23c6782 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 11 Jul 2021 10:15:53 -0400 Subject: [PATCH] just in case --- core/src/mindustry/mod/Mods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index 715e340ed3..35dcd90fde 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -87,7 +87,7 @@ public class Mods implements Loadable{ /** Imports an external mod file. Folders are not supported here. */ public LoadedMod importMod(Fi file) throws IOException{ //for some reason, android likes to add colons to file names, e.g. primary:ExampleJavaMod.jar, which breaks dexing - String baseName = file.nameWithoutExtension().replace(':', '_'); + String baseName = file.nameWithoutExtension().replace(':', '_').replace(' ', '_'); String finalName = baseName; //find a name to prevent any name conflicts int count = 1;