Skip to content
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

Fix Forge platform version detection. #1870

Merged
merged 1 commit into from Jul 29, 2022

Conversation

marchermans
Copy link
Contributor

The MinecraftDev plugin tries to detect the minecraft version from the name of the minecraft dependency.
However in doing so it assumed that the Forge Version would always be present, which is not the case if FG is run in vanilla mode.

In that vanilla mode the version string has a different format where the "_" is after the "-", causing an exception when the version substring is about the be loaded.

This fix checks for this additional condition and prevents the crash from occuring.

Copy link
Contributor

@RedNesto RedNesto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I meant to review this earlier this week.

@RedNesto RedNesto merged commit eeb1d96 into minecraft-dev:dev Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants