It runs fine through IntelliJ, but it immediately crashes when ran on an actual client. I reduced it down to it's most barebones implementation, and it repeats the behavior. Am I compiling it to a .jar wrong or am I messing up somewhere else?
#[RESOLVED] Ran wrong gradle jar build task
10 messages · Page 1 of 1 (latest)
how did you get the jar file?
I ran the selected Gradle task and then copied it from the circled location
Exporting your mod as a JAR: run in a terminal from the same directory as the mod project directory ./gradlew build on GNU/Linux and Mac, or gradlew build on Windows. Alternatively, in IntelliJ IDEA, open the Gradle tab on the right and execute build under tasks. The JARs should appear in ${projectDir}/build/libs. Use the one with the shortest name outside development.
common issue
[RESOLVED] Ran wrong gradle jar build task