Jump to content

Recommended Posts

Posted

My mod is crashing and I am not sure what is causing it. Any help is appreciated. Thanks.

https://github.com/chasingfirehpps/Future-weapons-mod

 

  Reveal hidden contents

 

Posted

I can't be sure what's wrong

 

but

 

I believe

"public static Item Plasma_Rifle;"

should be

"public static Item plasma_Rifle;"

 

field names need to be lower case to start (unless I'm wrong)

 

your ItemInfo fields are also upper case to start, which could be causing the error

Posted

Your init method does not get called before your addNames method. See below:

 

  Reveal hidden contents

 

 

In your code you have 2 event handlers for the very same event. Obviously Forge is not going to call them both, and if it did what order would you expect them to be called in?

The names of your event handlers makes no difference to the event bus mechanism, only the argument types do. I'd suggest you make the one you want to execute first use FMLPreinitializationEvent and leave the other one the same.

 

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.

Announcements



×
×
  • Create New...

Important Information

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