-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[1.20.4] ClasspathLocator is no longer disabled in production env, causing OptiFine to crash while installing in the classpath #9899
Comments
The removal of the I'm not sure about whether this change is for some special purposes or not. |
It being enabled at runtime is an intended change. But it does seem I should re-work it to be a two phase system to be sure to not locate things that have already been located such as optifine. The locations services is still a work in progress as I was trying to clean up the clusterfuck of a codebase/design while breaking as little as possible. I will make another pass when i get some time. |
Thanks for you reply. If any plans about the feature to disable ClasspathLocator locating JARs which contains ITransformationService are made, please let us know. |
Was simpler then I expected. And was just another random list of hardcoded things that I intend to cleanup at some point in the future. |
Excuse me, this modification was applied in 1.20.4-49.0.50 right? |
Thats what the changelog says yes. |
Minecraft Version: 1.20.4
Forge Version: 49.0.39
Hello, I'm a developer of Hello Minecraft! Launcher https://github.com/HMCL-dev/HMCL.
In Forge versions for Minecraft 1.20.4, ClasspathLocator is always enabled in any environment, unlike the old implementation which was only enabled in development environments.
Therefore, while installing some mods (e.g. OptiFine) in the classpath, it worked in the legacy Forge versions as following reasons.
mods
folder.However, while ClasspathLocator is enabled in any environment, this no longer works as following reasons.
mods.toml
mod.toml
without a Class annotated by@Mod("optifine")
See: HMCL-dev/HMCL#2975 (Sorry for it's in Chinese :(
I suggest ClasspathLocator execlude the files that contains an implementation of ITransformationService, just like ModsFolderLocator.
(Apologize for my poor English.)
The text was updated successfully, but these errors were encountered: