-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with OptiFine D6 #47
Comments
I have released a tiny mod that hacks Java 9 compat into OptiFine D6, so a workaround exists now. Ponderings on merging this into LWJGL3ifyThis hack cannot be cleanly added to LWJGL3ify (at least the mod) since it requires precise ordering between coremod initialization events. Here are the events we're working with: 1a. OptiFine tweaker gets loaded -> The order between 1a and 1b is dependent on jar name, so it cannot be guaranteed. The order between 2 and 3 is decided by the Transforming There does exist an order-agnostic solution: if we're before 1a, replace |
oh cool so we can use Fastcraft 1.2.3 and Optifine D6 ontop with newest java version :) |
With FastCraft 1.23 + OptiFine D6, disabling |
Fixed in alpha 6. |
I'm not sure if there's any way to fix this from LWJGL3ify's side, but I figured it would be worth reporting.
OptiFine D6 obtains a ZipFile reference to its own jar file roughly like this:
An exception happens on the first line since in new versions of Java,
AppClassLoader
is no longer a subclass ofURLClassLoader
.OptiFine E7 doesn't have this problem, since it instead uses
OptiFineClassTransformer.class.getProtectionDomain().getCodeSource().getLocation()
to get the URL. The reason D6 is relevant is because it has been found to give better performance than E7 in some cases.The text was updated successfully, but these errors were encountered: