Mouse Tweaks

Mouse Tweaks

361M Downloads

Mod crashes when running datagen

Closed this issue ยท 1 comments

commented

If the mod is installed in a dev env, and a data run is started, mouse tweaks crashes the program.

Minecraft: 1.21.1
NeoForge: 21.1.138
Mouse Tweaks: 2.26.1

Log:

Caused by: net.neoforged.fml.ModLoadingException: Loading errors encountered:
	- Mouse Tweaks (mousetweaks) has failed to load correctly
	  java.lang.NullPointerException: Cannot read field "gameDirectory" because "yalter.mousetweaks.Main.mc" is null

	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.waitForFuture(ModLoader.java:281)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.dispatchParallelTask(ModLoader.java:244)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.constructMods(ModLoader.java:152)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:142)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.internal.CommonModLoader.begin(CommonModLoader.java:49)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:47)
	at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	... 17 more
commented

Duplicate of #165. Also, does this still happen on the latest Mouse Tweaks commit/version? I think I changed something relevant