File tree Expand file tree Collapse file tree 3 files changed +23
-23
lines changed
src/main/java/org/polyfrost/oneconfig/internal/legacy
versions/1.8.9-fabric/src/main/java/org/polyfrost/oneconfig/internal Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ dgt.java.version=8
1313# Project Configuration
1414project.group =org.polyfrost.oneconfig
1515project.name =OneConfig
16- project.version =1.0.0-alpha.162
16+ project.version =1.0.0-alpha.163
Original file line number Diff line number Diff line change @@ -91,17 +91,17 @@ public OneConfigTweaker() {
9191 try {
9292 boolean supportsHiDPI = !Objects .equals (System .getProperty ("os.arch" ), "aarch64" );
9393 if (!supportsHiDPI ) {
94- try {
95- Class <?> clazz = Class .forName ("org.lwjgl.Sys" , false , OneConfigMixinInit .class .getClassLoader ());
96- try {
97- clazz .getDeclaredField ("HAS_HIDPI_FIX" );
98- supportsHiDPI = true ;
99- } catch (NoSuchFieldException ignored ) {
100- // Field not found, continue with the default value
101- }
102- } catch (ClassNotFoundException ignored ) {
103-
104- }
94+ // try {
95+ // Class<?> clazz = Class.forName("org.lwjgl.Sys", false, OneConfigMixinInit.class.getClassLoader());
96+ // try {
97+ // clazz.getDeclaredField("HAS_HIDPI_FIX");
98+ // supportsHiDPI = true;
99+ // } catch (NoSuchFieldException ignored) {
100+ // // Field not found, continue with the default value
101+ // }
102+ // } catch (ClassNotFoundException ignored) {
103+ //
104+ // }
105105 }
106106 if (!supportsHiDPI ) {
107107 injectLWJGLFix ();
Original file line number Diff line number Diff line change @@ -27,17 +27,17 @@ public void onPreLaunch() {
2727 try {
2828 boolean supportsHiDPI = !Objects .equals (System .getProperty ("os.arch" ), "aarch64" );
2929 if (!supportsHiDPI ) {
30- try {
31- Class <?> clazz = Class .forName ("org.lwjgl.Sys" , false , OneConfigMixinInit .class .getClassLoader ());
32- try {
33- clazz .getDeclaredField ("HAS_HIDPI_FIX" );
34- supportsHiDPI = true ;
35- } catch (NoSuchFieldException ignored ) {
36- // Field not found, continue with the default value
37- }
38- } catch (ClassNotFoundException ignored ) {
39-
40- }
30+ // try {
31+ // Class<?> clazz = Class.forName("org.lwjgl.Sys", false, OneConfigMixinInit.class.getClassLoader());
32+ // try {
33+ // clazz.getDeclaredField("HAS_HIDPI_FIX");
34+ // supportsHiDPI = true;
35+ // } catch (NoSuchFieldException ignored) {
36+ // // Field not found, continue with the default value
37+ // }
38+ // } catch (ClassNotFoundException ignored) {
39+ //
40+ // }
4141 }
4242 if (!supportsHiDPI ) {
4343 injectLWJGLFix ();
You can’t perform that action at this time.
0 commit comments