Skip to content

Commit

Permalink
Update DisplayWindow.java
Browse files Browse the repository at this point in the history
fix #29
  • Loading branch information
Lolothepro authored Nov 1, 2023
1 parent e29afa5 commit edf452a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public Runnable initialize(String[] arguments) {
this.maximized = parsed.has(maximizedopt) || FMLConfig.getBoolConfigValue(FMLConfig.ConfigValue.EARLY_WINDOW_MAXIMIZED);

var forgeVersion = parsed.valueOf(forgeversionopt);
StartupNotificationManager.modLoaderConsumer().ifPresent(c->c.accept("Forge loading "+ forgeVersion));
StartupNotificationManager.modLoaderConsumer().ifPresent(c->c.accept("NeoForge loading "+ forgeVersion));
performanceInfo = new PerformanceInfo();
return start(parsed.valueOf(mcversionopt), forgeVersion);
}
Expand Down Expand Up @@ -403,7 +403,7 @@ public void initWindow(@Nullable String mcVersion) {
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, GL_VERSIONS[versidx][1]);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
window = glfwCreateWindow(winWidth, winHeight, "Minecraft: Forge Loading...", 0L, 0L);
window = glfwCreateWindow(winWidth, winHeight, "Minecraft: NeoForge Loading...", 0L, 0L);
var erridx = versidx;
handleLastGLFWError((error, description) -> lastGLError[erridx] = String.format("Trying %d.%d: GLFW error: [0x%X]%s", GL_VERSIONS[erridx][0], GL_VERSIONS[erridx][1], error, description));
if (lastGLError[versidx] != null) {
Expand Down Expand Up @@ -620,4 +620,4 @@ public void close() {
public void crash(final String message) {
crashElegantly(message);
}
}
}

0 comments on commit edf452a

Please sign in to comment.