diff options
Diffstat (limited to 'enigma-cli/src/main/java')
| -rw-r--r-- | enigma-cli/src/main/java/cuchaz/enigma/command/Command.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/enigma-cli/src/main/java/cuchaz/enigma/command/Command.java b/enigma-cli/src/main/java/cuchaz/enigma/command/Command.java index de06fa6e..06c49162 100644 --- a/enigma-cli/src/main/java/cuchaz/enigma/command/Command.java +++ b/enigma-cli/src/main/java/cuchaz/enigma/command/Command.java | |||
| @@ -6,7 +6,6 @@ import java.nio.file.Files; | |||
| 6 | import java.nio.file.Path; | 6 | import java.nio.file.Path; |
| 7 | import java.nio.file.Paths; | 7 | import java.nio.file.Paths; |
| 8 | 8 | ||
| 9 | import com.google.common.io.MoreFiles; | ||
| 10 | import net.fabricmc.mappingio.MappingReader; | 9 | import net.fabricmc.mappingio.MappingReader; |
| 11 | import net.fabricmc.mappingio.tree.MemoryMappingTree; | 10 | import net.fabricmc.mappingio.tree.MemoryMappingTree; |
| 12 | import net.fabricmc.mappingio.tree.VisitableMappingTree; | 11 | import net.fabricmc.mappingio.tree.VisitableMappingTree; |
| @@ -57,7 +56,7 @@ public abstract class Command { | |||
| 57 | 56 | ||
| 58 | protected static EntryTree<EntryMapping> readMappings(Path path, ProgressListener progress, MappingSaveParameters saveParameters) throws IOException, MappingParseException { | 57 | protected static EntryTree<EntryMapping> readMappings(Path path, ProgressListener progress, MappingSaveParameters saveParameters) throws IOException, MappingParseException { |
| 59 | // Legacy | 58 | // Legacy |
| 60 | if ("zip".equalsIgnoreCase(MoreFiles.getFileExtension(path))) { | 59 | if (path.getFileName().toString().toLowerCase().endsWith(".zip")) { |
| 61 | return MappingFormat.ENIGMA_ZIP.read(path, progress, saveParameters, null); | 60 | return MappingFormat.ENIGMA_ZIP.read(path, progress, saveParameters, null); |
| 62 | } | 61 | } |
| 63 | 62 | ||