Skip to content

Forge 1.21.x version is broken #18

@PaintNinja

Description

@PaintNinja

In your Forge 1.21 build on CurseForge, it appears that you forgot to disable reobf as shown in the MDK, causing it to remap to non-existent methods as Forge moved to runtime MojMap (same mappings at both dev time and build-time).

I would like to submit the fix to you in a PR directly but the source code for the Forge 1.21 version is missing so I am unable to do so :(

To fix the problem, you need to do two things to the build.gradle:

  1. Turn off reobf in the minecraft block by adding this line:
minecraft {
    mappings channel: mapping_channel, version: mapping_version

    copyIdeResources = true
+    reobf = false
  1. Delete this line:
- jar.finalizedBy 'reobfJar'

If you have problems with porting to Forge in future, please reach out to us on the new Discord and we'd be happy to help you. Please don't assume that Forge itself is broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions