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 change in behavior of NeoFormRuntimeSpecification#getNeoFormVersion #123

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

lukebemish
Copy link
Contributor

@lukebemish lukebemish commented Feb 27, 2024

PR #86 caused a change in the behavior of NeoFormRuntimeSpecification#getNeoFormVersion, in which it now returns versions in the form MCVERSION-TIMESTAMP instead of TIMESTAMP. This PR fixes this regression, and updates locations which make use of the new behavior to use Specification#getVersion instead, which returns the full MC-version-and-timestamp version string, as well as adding something to the javadoc of the method explaining which form is should return. I have tested this in neodev, and it creates an installer which works, and which can launch the game as a dedicated server successfully.

@neoforged-pr-publishing
Copy link

  • Publish PR to GitHub Packages

@marchermans marchermans merged commit 6b4435a into neoforged:NG_7.0 Feb 27, 2024
23 of 24 checks passed
public String getNeoFormVersion() {
return getVersion();
return getVersion().substring(getVersion().lastIndexOf("-") + 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this specifically revert the ability to use a branch-version of neoform successfully or am I misremembering?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, maybe - how're those formatted? Do we need to use indexOf instead here?

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.

3 participants