Skip to content

Commit 5495e30

Browse files
committed
Fix GLFW spam, and GLFW being added several times to the classpath
1 parent 9f9535e commit 5495e30

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/src/main/java/pojlib/install/Installer.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,18 @@ public static String installLibraries(VersionInfo versionInfo, String gameDir) t
6969
}
7070
}
7171

72-
if (DownloadUtils.compareSHA1(libraryFile, sha1)) {
73-
// Add our GLFW
74-
classpath.add(Constants.USER_HOME + "/lwjgl3/lwjgl-glfw-classes.jar");
75-
76-
classpath.add(libraryFile.getAbsolutePath());
77-
break;
72+
if (!libraryFile.getAbsolutePath().contains("lwjgl")) {
73+
if(DownloadUtils.compareSHA1(libraryFile, sha1)) {
74+
classpath.add(libraryFile.getAbsolutePath());
75+
break;
76+
}
7877
}
7978
}
8079
}
8180

81+
// Add our GLFW
82+
classpath.add(Constants.USER_HOME + "/lwjgl3/lwjgl-glfw-classes.jar");
83+
8284
return classpath.toString();
8385
}
8486

lib/src/main/java/pojlib/instance/MinecraftInstance.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ public void updateOrDownloadsMods() {
177177

178178
} catch (IOException e) {
179179
e.printStackTrace();
180-
181180
}
182-
183181
}
184182

185183
public void addCustomMod(String name, String version, String url) {

0 commit comments

Comments
 (0)