Jump to content

Recommended Posts

Posted

The title hopefully explains it. Basically my bow works, but then when i implemented a bow renderer for it, it crashed the game when the player holds it in his hand. I was going to test if the renderer worked, apparently it didnt. I dont really know alot about java and sometimes i dont understand it, thats why im trying to learn it as i go along with my mod. I would really appreciate the help, sincerely killerjdog51.

 

crash report

 

  Reveal hidden contents

 

 

Bow Render

 

  Reveal hidden contents

 

 

client proxy

 

  Reveal hidden contents

 

 

The error specifies these two lines from the Bow Renderer but i dont understand what they mean.

 

this.renderItem(entity, item, 0);

 

texturemanager.bindTexture(texturemanager.getResourceLocation(par2ItemStack.getItemSpriteNumber()));

Posted

You're getting a nullpointer exception, which means you're accessing methods or fields from an object that doesn't actually exist, it's null.

 

The things that COULD be null at line 87 are:

* texturemanager

* par2ItemStack

 

The most likely to be null is the ItemStack. in your function renderItem, try checking if the itemstack to be rendered is null.

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.