Jump to content

Recommended Posts

Posted (edited)

Okay, I have been troubleshooting this for hours. I honestly have no clue what is wrong here.

Code:

https://github.com/venrob/RobsStuff-mcmod/tree/emeraldToolsAndArmor

Crash report:

  Reveal hidden contents

The error clearly points me to my block registry of the star_block (nether star block), yet the nether star block code has not changed at all since the last time that I had it working. Also, if I comment out the Item EMERALD_AXE in ModItems, everything works again with no issues. I cannot see anything wrong with the Emerald Axe item, and honestly have no clue what could be going on here. Can anyone help?

Edited by Venrob
Posted

Thank you! I'm still confused why the error would point toward my block registry, but that was indeed the actual issue!

Posted

Because of static initializers. In order for your BlockBase class to add its ItemBlock to ModItems.ITEMS, all your other static fields have to be initialized. But it can't, and there's no line number because of how static initializers are constructed. 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • 3 years later...
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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