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;