Jump to content

Recommended Posts

Posted

I recently updated my mod from 1.6.4 to 1.7.2, and got rid of all the errors and updated all my methods. I was honestly expecting really difficult problems to appear, and they did. However, they did not occur at all where I was expecting them( read: PacketHandler and/or my XMLconfig for one of the modfeatures) the problems occurred with my items and registering their icons.

 

In the IIconRegister methods, I put

System.out.println(icons[i]);

. Unless things are being handled differently in 1.7.2, my console should have the icons printed out, it doesn't.

 

Opening the creative inventory is alright. Accessing my custom tab, however, is not. The items seem to crash the game whenever a gui is opened that is supposed to render them, throwing an NPE.

 

This is the crash in question: [LINK]

 

The item class in question is this: [LINK]

 

I'm not entirely sure what to do at this point...

Posted

@diesieben07 I have already sorted this out with him. I have helped him find his errors :)

 

A) he wasn't registering his items via GameRegistry.registerItem() and he was getting weird crashes because of it. And other things besides. But its all good now :)

We all stuff up sometimes... But I seem to be at the bottom of that pot.

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.