Skip to content

Conversation

@itzg
Copy link
Owner

@itzg itzg commented Mar 25, 2023

Resolves #174

cc @kevinkjt2000

@itzg itzg added the bug Something isn't working label Mar 25, 2023
@itzg itzg merged commit 4e85959 into master Mar 25, 2023
@itzg itzg deleted the fix/forge-version-info branch March 25, 2023 16:19
// such as "1.7.10-Forge10.13.4.1614-1.7.10"
final String[] idParts = idNode.asText().split("-");

if (idParts.length == 3) {

Choose a reason for hiding this comment

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

Some of the forge versions only have length 2 here. 1.7.10 sure had an annoying extra bit in the filename.
Here's 1.5.2:

  "versionInfo": {
    "id": "1.5.2-Forge7.8.1.738",

Copy link
Owner Author

Choose a reason for hiding this comment

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

Great investigation. As I mentioned over in the issue, it would be awesome if you could PR the fix for this. Just reference the same issue as before.

Choose a reason for hiding this comment

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

Suggested change
if (idParts.length == 3) {
if (idParts.length == 2 || idParts.length == 3) {

Copy link
Owner Author

Choose a reason for hiding this comment

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

Code suggestions can't be applied after the PR is merged. Can you create a new PR with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot find version in older FORGE_INSTALLER

3 participants