diff --git a/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java b/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java index ea234836d1..8565a64714 100644 --- a/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java +++ b/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java @@ -103,6 +103,8 @@ public class ModClassLoader extends URLClassLoader public boolean isDefaultLibrary(File file) { + String home = System.getProperty("java.home"); // Nullcheck just in case some JVM decides to be stupid + if (home != null && file.getAbsolutePath().startsWith(home)) return true; // Should really pull this from the json somehow, but we dont have that at runtime. String name = file.getName(); if (!name.endsWith(".jar")) return false;