Jump to content

[1.10.2] New Registry Event Question


LogicTechCorp

Recommended Posts

I switched over to the new registry event system, which works great, but I had an issue which caused a crash. Some of my Blocks and Biomes are constructed with variables that can be changed via a config and the new registry events fire before my config is initialized, which cause a NPE. I found a workaround and would like to know if this is the best solution until the new Config System is implemented.

 

Config:

https://github.com/LogicTechCorp/NetherEx/blob/1.10.2/src/main/java/nex/handler/ConfigurationHandler.java

 

Workaround Hack:

https://github.com/LogicTechCorp/NetherEx/blob/1.10.2/src/main/java/nex/init/ModBlocks.java#L80-L89

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.