Crendgrim / DynamicCrosshair

A Minecraft mod that hides or changes the crosshair dependent on context.
GNU Lesser General Public License v3.0
22 stars 7 forks source link

1.21 NeoForge Crash (ConfigHandler) #103

Open GreatKingKeenan opened 2 months ago

GreatKingKeenan commented 2 months ago

https://mclo.gs/hSyAzuQ

Crendgrim commented 2 months ago

I cannot replicate. Under which conditions does it crash?

GreatKingKeenan commented 2 months ago

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

Crendgrim commented 2 months ago

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.

GreatKingKeenan commented 2 months ago

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.

DFreezerR commented 2 months ago

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)

FreshImmuc commented 23 hours ago

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

Crendgrim commented 5 hours ago

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.

FreshImmuc commented 1 hour ago

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! :)