#Crash when mod is exported
32 messages · Page 1 of 1 (latest)
When does the error happen?
It's telling you that this.client is null in some screen class btw
on launch
Do you perhaps have another mod loaded?
nope just fabric api that is required
Also you'ld probably get more help if you actually linked the sources of your mod
How's anyone supposed to guess what the issue is from that brief error message. What about the game log/ crash report etc.
how
no
im making a client
@upbeat sparrow u there?
Yea but you didn't respond to most of what I wrote
I didnt use any other mods than my mod and fabric api
the version is 1.21
my mod is not open source for github
the crash happens on launch
i dont know what is the issue so i just put some general info so if someone decides to help me they can ask for more info
What about the crash report or logs?
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Thread: Render thread
Stacktrace:
at net.minecraft.class_437.method_56131(class_437.java:173)
at net.minecraft.class_437.method_41843(class_437.java:324)
at net.minecraft.class_437.method_48640(class_437.java:419)
at net.minecraft.class_437.method_25410(class_437.java:426)
at net.minecraft.class_310.method_15993(class_310.java:1408)
at net.minecraft.class_310.<init>(class_310.java:668)
Ah, well. In that case it's probably one of your mixins at fault
that is strange because i exported it before with the same mixins and it worked :/
all i changed since that is the path to my accesswidener that i forgot to put in
Description: Initializing game
java.lang.NullPointerException: Cannot invoke "net.minecraft.class_310.method_48186()" because "this.field_22787" is null
at net.minecraft.class_437.method_56131(class_437.java:173)
at net.minecraft.class_437.method_41843(class_437.java:324)
at net.minecraft.class_437.method_48640(class_437.java:419)
at net.minecraft.class_437.method_25410(class_437.java:426)
at net.minecraft.class_310.method_15993(class_310.java:1408)
at net.minecraft.class_310.<init>(class_310.java:668)
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
also this
Well, it's certainly a weird issue, but idk what causes it. Look at the main menu or loaging screen mixin it you have one. Maybe it's an issue with initialization order
could that happen if i forgot to list a mixin in the mixins of mod.json
I guess it could but that's unlikely
ye i did forget to list one but it wasnt that
Based on the class/function names, you are using an instance of the Screen class before the MinecraftClient is ready. Since you wish to provide nothing more, this is as far as I will help you too.
how could i change that?
sorry im late i was watching the olympics opening
Unless you provide code, there is no way to tell, except just use a debugger 🤷♂️