Jump to content

Recommended Posts

Posted

Hey everyone, I have a strange problem with my Tile Entities. I recently changed my Fish Mod (yes, it a silly mod I'm making for practice) to use Tile Entities for the fish dirt rather than a tick handler. The only problem is, I get a NPE 5-30 seconds after placing the block:

http://paste.minecraftforge.net/view/40bb4ec6

The Entity that throws the NPE on move varies from EntityITem to EntityFallingSand each time. If I make the Tile Entity not shoot out fish, it doesn't cause a crash. I suspect something with bounding boxes but I'm not really sure how to fix it.

 

Here is all the relevant code:

 

FishMod

 

  Reveal hidden contents

 

 

FishGodDirt:

 

  Reveal hidden contents

 

 

ItemFakeFish:

 

  Reveal hidden contents

 

 

TileEntityFishGodDirt:

 

  Reveal hidden contents

 

 

Thanks!

Posted

It would help if you pasted the ENTIRE error report, please. The small bit you included wasn't enough for me to diagnose the problem. There's no mention of your classes anywhere, so I can't pinpoint where the problem is.

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.