diff --git a/src/main/java/net/minecraftforge/fml/relauncher/CoreModManager.java b/src/main/java/net/minecraftforge/fml/relauncher/CoreModManager.java index 82b7bd7a3..bd026f439 100644 --- a/src/main/java/net/minecraftforge/fml/relauncher/CoreModManager.java +++ b/src/main/java/net/minecraftforge/fml/relauncher/CoreModManager.java @@ -19,6 +19,7 @@ package net.minecraftforge.fml.relauncher; +import java.io.Closeable; import java.io.File; import java.io.FileFilter; import java.io.FileOutputStream; @@ -42,8 +43,6 @@ import java.util.jar.Attributes; import java.util.jar.JarEntry; import java.util.jar.JarFile; -import org.apache.commons.compress.utils.IOUtils; - import com.google.common.io.ByteStreams; import com.google.common.io.Files; import net.minecraft.launchwrapper.ITweaker; @@ -402,7 +401,7 @@ public class CoreModManager { } finally { - IOUtils.closeQuietly(jar); + closeQuietly(jar); } // Support things that are mod jars, but not FML mod jars try @@ -457,7 +456,7 @@ public class CoreModManager { } finally { - IOUtils.closeQuietly(jar); + closeQuietly(jar); } } } @@ -788,4 +787,11 @@ public class CoreModManager { } } + private static void closeQuietly(Closeable closeable) { + try { + if (closeable != null) + closeable.close(); + } catch (final IOException ioe){} + } + }