Jump to content

Recommended Posts

Posted

Hello, S I'm making a new Furnace with 5 input slots, but whenever I try to open the gui of the block it crashes the game and I get this error report:

 

java.lang.NullPointerException

at net.minecraft.src.Slot.getStack(Slot.java:77)

at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:202)

at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:72)

at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:972)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:873)

at net.minecraft.client.Minecraft.run(Minecraft.java:750)

at java.lang.Thread.run(Unknown Source)

 

i have no idea what I'm supposed to do with that.

 

Please don't hate on me if this is a simple fix, I just can't figure it out.

 

Also, if you need code, i will give it.

Posted

Code:

 

Here's the code. and that was the full Error log, minus the not needed stuff.

 

  Reveal hidden contents

 

Posted

Somehow, you're having a different Slot class then I.

But it looks like somehow the slot inventory is null.

Figure out how you created a clot with a null inventory.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
  On 7/9/2012 at 8:58 PM, LexManos said:

Somehow, you're having a different Slot class then I.

But it looks like somehow the slot inventory is null.

Figure out how you created a clot with a null inventory.

 

hmm, seems legit, but I can't figure out where, though.....

Posted

Put a system.out.println() after every line.

PS, the exception occured around line 77.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

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.