nahkd123 / inking

Java to OpenTabletDriver (OTD) bridge.
MIT License
0 stars 0 forks source link

inking-otd: Java 21 (was Java 22) #9

Closed nahkd123 closed 7 months ago

nahkd123 commented 7 months ago

Move inking-otd out of Java 21 with preview features and make it requires Java 22 or later. Other Inking components will remain at Java 17 for now.

nahkd123 commented 7 months ago

nahh I think I'll move back to Java 21, because Minecraft 1.20.5 is likely going to use Java 21 and I just discovered a cursed way to use FFMAPI on Java 21 without --enable-preview.

By changing the minor version to 0x0000 at binary level, I can trick JVM into thinking that the class wasn't compiled with preview features enabled, yet it stills allow you to use FFMAPI without problems.

nahkd123 commented 7 months ago

I got it working! Time to close this I guess?