Just Enough Resources (JER)

Just Enough Resources (JER)

163M Downloads

CRASH: When trying to add JER Ore Generation support to my Mod

Blackout03 opened this issue ยท 1 comments

commented

Issue: Whenever I try to get ore generation working, the mod crashes with an error.
Failure message: Chaos Awakens (chaosawakens) has failed to load correctly java.lang.NullPointerException: Registry Object not present: chaosawakens:amethyst_ore

Hello currently both my block register and my JER Integration init are both in the main class

Block Register
JER Integration Init

Should the JER init be in a separate spot?
This is my JER Init file with a lot of the ore generation attempts.
The Dungeon Loot Integration works fine.

Github Gist Links for crash report/logs:
Crash Report
Debug.log
Latest.log

commented

This was fixed by moving the JER init line thing into FMLCommonSetupEvent. I think that is what fixed it at least. But it is fixed.
ModList modList = ModList.get(); if (modList.isLoaded("jeresources")) CAJER.init();
As seen here: https://github.com/ChaosAwakens/ChaosAwakens/blob/f00187beac1617695131028ec99bf74e1260a94a/src/main/java/io/github/chaosawakens/common/events/CommonSetupEvent.java#L73

This is the CAJER class if anyone in the future that reads this is interested and needs help with the ore generation. xD https://github.com/ChaosAwakens/ChaosAwakens/blob/1.16.5-forge/src/main/java/io/github/chaosawakens/common/integration/CAJER.java