Jump to content

Recommended Posts

Posted

I have been having some problems well trying out IExtendedProperties it seems like when i call my ExtendedPlayerProperties i crash. this is the code and error log.

 

Error Log:

http://paste.minecraftforge.net/view/42e0c4d5

 

ExtendedProperties:

http://paste.minecraftforge.net/view/73fa6d1c

 

EntityConstructingEvent:

http://paste.minecraftforge.net/view/231a7164

 

SpiritBase:

http://paste.minecraftforge.net/view/d114c1ba

Posted

Your SpiritBase class requires a fully initialized EntityPlayer, but you are trying to access it from within the IExtendedEntityProperties constructor which is called during Entity construction, got it? You can't do that.

 

Also, what are you thinking trying to access your extended properties from within SpiritBase, which is needed to initialize your extended properties? Get rid of all of that stuff and come up with a better way to initialize your variables. IExtendedEntityProperties already has an entity, in this case an EntityPlayer, and you're in the class already, so why not initialize them there?

 

At the very least, make your SpiritBase class not require an EntityPlayer (or entity of any sort) and just make it a class that stores and handles things to do with mana.

 

 

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.

×
×
  • Create New...

Important Information

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