Skip to content

[fix] Fix malformed Starcatcher version range - #80

Open
modfixerupper wants to merge 1 commit into
DragonsPlusMinecraft:1.21.1/6.0.0-devfrom
modfixerupper:fix/starcatcher-version-range
Open

modfixerupper wants to merge 1 commit into
DragonsPlusMinecraft:1.21.1/6.0.0-devfrom
modfixerupper:fix/starcatcher-version-range

Conversation

@modfixerupper

Copy link
Copy Markdown
Contributor

What happened

gradle.properties declares:

starcatcher_version_range = [3.2,4,4)

Maven reads the upper bound as the literal version 4,4, so NeoForge rejects every Starcatcher 4.x release. The game fails during mod loading even with 4.3:

Mod create_integrated_farming only supports starcatcher 3.2 or above, and below 4,4
Currently, starcatcher is 4.4-NEOFORGE-1.21.1

The range was [3.2,4) in #77; the extra comma appears to be a merge-resolution typo.

Change

starcatcher_version_range = [3.2,4.5)

This keeps the 3.2 minimum and accepts the 4.x line through 4.4.x.

The integration only uses FishApi, FishProperties, FishingBobEntity, and the fish registry surface. I compared the 19 referenced members and 6 referenced classes in Starcatcher 3.3.10 against 4.0, 4.1, 4.2, 4.3, and 4.4 with javap -p -s: all names and descriptors are identical. The only referenced class whose internals changed in 4.x is RarityCountRestriction, and the integration only uses it for instanceof checks. The compile dependency can stay on 3.3.10, so the code is still compiled against the oldest supported API surface.

Testing

  • A 1.21.1 instance with Starcatcher 4.4 now passes mod loading (it previously crashed with the message above).
  • Binary compatibility check across 3.3.10 and 4.0-4.4 as described.

The upper bound in [3.2,4,4) is parsed as the literal version 4,4,
so Maven rejects every Starcatcher 4.x release, including 4.3 and 4.4.
Use [3.2,4.5) so the declared range matches the APIs the integration
actually uses; all referenced members are binary-identical in 3.3.10
and 4.0-4.4.
@modfixerupper

Copy link
Copy Markdown
Contributor Author

Also, @MarbleGateKeeper , check your DIscord when you can. I've sent you a friend request.

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.

1 participant