Fix Optifine detecting not returning correct value
This commit is contained in:
@@ -11,9 +11,11 @@ public class OptifineUtils {
|
|||||||
try {
|
try {
|
||||||
Class ofConfigClass = Class.forName("net.optifine.Config");
|
Class ofConfigClass = Class.forName("net.optifine.Config");
|
||||||
hasOptifine = true;
|
hasOptifine = true;
|
||||||
|
return;
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException e) {
|
||||||
// Optifine is probably not present. Ignore the error
|
// Optifine is probably not present. Ignore the error
|
||||||
hasOptifine = false;
|
hasOptifine = false;
|
||||||
|
return;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user