VazkiiMods / Patchouli

Accessible, Data-Driven, Dependency-Free Documentation for Minecraft Modders and Pack Makers
https://vazkiimods.github.io/Patchouli/
Other
314 stars 124 forks source link

Crash when using patchouli as a mod in dev enviroments #722

Closed sveltarne closed 8 months ago

sveltarne commented 9 months ago

Mod loader

Forge

Minecraft version

1.18.2

Patchouli version

71.1

Modloader version

40.2.17

Modpack info

No response

The latest.log file

https://pastebin.com/h0RWksMx

Issue description

In an intellij dev enviroment, whenever i drop the patchouli jar into run/mods minecraft does not start up.

Steps to reproduce

No response

Other information

No response

InterPlay02 commented 9 months ago

Use the dependencies field, instead. I am using it on 1.20.1 and it works fine. I have added this to my gradle.build:

minecraft {
    [...]
    runs {
        [...]
        client {
            [...]
            property 'mixin.env.remapRefMap', 'true'
            property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
        }
    }
}

repositories {
    maven { url 'https://maven.blamejared.com' }
}

dependencies {
    minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
    compileOnly fg.deobf("vazkii.patchouli:Patchouli:1.20.1-84-FORGE:api")
    runtimeOnly fg.deobf("vazkii.patchouli:Patchouli:1.20.1-84-FORGE")
}

You should try something similiar, but for 1.18.2