diff options
-rw-r--r-- | depends/launcher/org/multimc/Utils.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/depends/launcher/org/multimc/Utils.java b/depends/launcher/org/multimc/Utils.java index a695b008..addeb3cb 100644 --- a/depends/launcher/org/multimc/Utils.java +++ b/depends/launcher/org/multimc/Utils.java @@ -259,6 +259,16 @@ public class Utils { zip.close(); } + + // For java <= 7, do not do symlink hackery below. + String[] javaVersionElements = System.getProperty("java.version").split("\\."); + int major = Integer.parseInt(javaVersionElements[1]); + if (major <= 7) + { + return; + } + + // for >= 8, do hackery for (String entryName : toProcess) { // check if we need a symlink |