Only add sorted/deduplicated mods to the classpath.

Fixes some mods causing the Forge error displays to break. Closes #9833
This commit is contained in:
LexManos committed 2024-01-02 12:51:57 -08:00
1 parent fdb22d02cc
commit 817e20821d
6 files changed
+50 -38

No files matched your search

@@ -158,6 +158,16 @@ public class ForgeConfig {
builder.pop();
}
// Allow these to be called before the config is loaded because its used before loading the error screens.
// Prevents a ton of spam when an error screen is displayed.
public final boolean calculateAllNormals() {
return clientSpec.isLoaded() ? calculateAllNormals.get() : calculateAllNormals.getDefault();
}
public final boolean showLoadWarnings() {
return clientSpec.isLoaded() ? showLoadWarnings.get() : showLoadWarnings.getDefault();
}
}
static final ForgeConfigSpec clientSpec;