Possible Android mod extension fix

This commit is contained in:
Anuken
2021-01-20 14:48:54 -05:00
parent ec73426bbc
commit 1f2b331bf6
2 changed files with 10 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ public class Mods implements Loadable{
/** Imports an external mod file.*/
public void importMod(Fi file) throws IOException{
Fi dest = modDirectory.child(file.name());
Fi dest = modDirectory.child(file.name() + (file.extension().isEmpty() ? ".zip" : ""));
if(dest.exists()){
throw new IOException("A file with the same name already exists in the mod folder!");
}