Fix Optifine detecting not returning correct value

This commit is contained in:
2022-11-30 22:03:58 +02:00
parent f6e42cf502
commit 4ce90ca8bd

View File

@@ -11,9 +11,11 @@ public class OptifineUtils {
try {
Class ofConfigClass = Class.forName("net.optifine.Config");
hasOptifine = true;
return;
} catch (ClassNotFoundException e) {
// Optifine is probably not present. Ignore the error
hasOptifine = false;
return;
} catch (Exception e) {
e.printStackTrace();
}