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

Added version check for neoforge filter #1658

Merged
merged 4 commits into from Oct 10, 2023

Conversation

Trial97
Copy link
Member

@Trial97 Trial97 commented Sep 25, 2023

Made the neoforge loaders filter dependent on the instance version.
Currently, 1.20.1 is compatible with the forge, but with 1.20.2 the compatibility is dropped.

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
@Trial97 Trial97 added enhancement New feature or request simple change changelog:changed A PR that appears under "Changed" in the changelog labels Sep 25, 2023
@TheKodeToad
Copy link
Member

I don't think this version comparison works with snapshots (and I wouldn't actually be surprised if they are supported in future at this point lol)
Maybe just drop the |= Forge entirely?

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
@Trial97
Copy link
Member Author

Trial97 commented Oct 4, 2023

It looks like that would not be a problem the Version class can handle the snapshots stuff.
So to make sure I added a test for that.
Let's consider the drop of automatic Forge support when we implement loaders filter overload.

@TheKodeToad
Copy link
Member

I'm talking about the [year]w[week][a-z] format

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
@Trial97
Copy link
Member Author

Trial97 commented Oct 4, 2023

Ok, I added a more strict condition: the forge is added just for 1.20.1.
Hope that we implement the filter thing before we need more changes here.

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
@Trial97 Trial97 added this to the 8.0 milestone Oct 9, 2023
@Trial97 Trial97 merged commit 6150908 into PrismLauncher:develop Oct 10, 2023
32 checks passed
@Trial97 Trial97 deleted the neoforge_version branch October 10, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:changed A PR that appears under "Changed" in the changelog enhancement New feature or request simple change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants