Dynamic Crosshair

Dynamic Crosshair

2M Downloads

1.21 NeoForge Crash (ConfigHandler)

GreatKingKeenan opened this issue ยท 8 comments

commented
commented

I cannot replicate. Under which conditions does it crash?

commented

It's a startup crash. This is what it reads.
Caused by: java.lang.NullPointerException: Cannot invoke "mod.crend.dynamiccrosshair.config.ConfigHandler.getCrosshairStyleRegular()" because "mod.crend.dynamiccrosshair.DynamicCrosshairMod.config" is null

commented

That must be a compatibility issue. On a fresh instance with latest NeoForge & DC it does not crash. Try removing mods until it stops crashing to figure out which other mod causes this.

commented

Yeah. I figured. A lot of mods have compatibility issues in 1.21. It's not a big deal though since from the look of it, most devs are working on 1.21.1. Just thought I'd post my crash log still.

commented

In my case the issue was this mod Remove Reloading Screen

Caused by: java.lang.NullPointerException: Cannot invoke "mod.crend.dynamiccrosshair.config.ConfigHandler.getCrosshairStyleRegular()" because "mod.crend.dynamiccrosshair.DynamicCrosshairMod.config" is null

this was the same error message I had
DC - dynamiccrosshair-8.1+1.21-neoforge
NF - 21.0.167
RRLS - rrls-5.0.7+mc1.21-forge
JAVA - jdk-21.0.4.7-hotspot

Edit: Same with DC + Placebo (Placebo-1.21-9.3.5)

commented

+1, sadly i am not able to remove one of the mods, @DFreezerR mentioned, since they are mandatory for the modpack

commented

Relevant: Crendgrim/AutoHUD#133

This is an incompatibility with the library mod "placebo" which, for some reasons I even after talking to its author do not understand, decides to silently change the order in which mods are initialised. The crash will be fixed in the upcoming version of DC.

commented

Relevant: Crendgrim/AutoHUD#133

This is an incompatibility with the library mod "placebo" which, for some reasons I even after talking to its author do not understand, decides to silently change the order in which mods are initialised. The crash will be fixed in the upcoming version of DC.

Thank you for this and your work on that, I'm excited to use this mod! :)