Skip to content

Conversation

@Luracasmus
Copy link
Contributor

See FabricMC/fabric-loader#1071. Essentially a new attempt at #884.

Using oxipng 9.1.5 with -Z -o max --fast --nc -a. Shrinks the repo by 29,432 B and the built jar by 1,368 B (before and after built locally).

Testing

The game runs as expected with no obvious issues.

There is no Mod Menu version for 25w45a, but I also can't seem to build any branch other than 1.21.11 of Fabric API my system. I instead extracted the 0.138.0+1.21.10 version from Modrinth and all contained jars at /META-INF/jars/, ran the same command as above on everything and reconstructed the jar. The first of the images below is taken with the modified jar.

bild bild

Visually comparing all of the images in GitHub's diff viewer I also noticed no differences.

I had to remove lines 58-74 in fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/DynamicRegistries.java and increase Gradle's Xmx to get gradlew build to succeed on the 1.21.11 branch, since the .javadoc task would otherwise fail with

.../fabric/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/DynamicRegistries.java:54: error: reference not found: RegistryKey
 * {@snippet :
   ^

or Gradle would run out of heap space.

gradlew check succeeds (ran before the aforementioned change) and produces problems-report.html.

using oxipng 9.1.5 with `-Z -o max --fast --nc -a`
@LambdAurora LambdAurora added priority: low Low priority PRs that don't immediately need to be resolved cleanup labels Nov 9, 2025
Copy link
Member

@modmuss50 modmuss50 left a comment

Choose a reason for hiding this comment

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

Sure, why not. Thanks for testing.

@modmuss50 modmuss50 added the status: merge me please Pull requests that are ready to merge label Nov 14, 2025
@Luracasmus
Copy link
Contributor Author

I also tested it with the new Mod Menu on 25w45a now and it seems fine

@modmuss50 modmuss50 merged commit 4ebb5c0 into FabricMC:1.21.11 Nov 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup priority: low Low priority PRs that don't immediately need to be resolved status: merge me please Pull requests that are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants