ShayBox / Durability101

A rewrite of the original Durability101 mod
https://curseforge.com/minecraft/mc-mods/durability101
MIT License
5 stars 5 forks source link

Forge 1.21.x version is broken #18

Open PaintNinja opened 1 month ago

PaintNinja commented 1 month ago

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

2) 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.