Jump to content

Recommended Posts

Posted

Hi guys, today I learned about DW, I create a class that implements IExtendedEntityProperties and registered my DW.

After registering those in EntityConstructing event, they worked perfectly! Load and save are perfect!

But the problem is there......

The RenderGameOverlay, it crashes I think because of this cast

PlayerInformation props = PlayerInformation.get((EntityPlayer) this.mc.thePlayer);

There's always a problem with Player cast D:

Here's my PlayerInformation that implements IExtendedEntityProperties:

 

  Reveal hidden contents

 

 

Where it loads in EntityConstructing event:

 

  Reveal hidden contents

 

 

Where it crashes in RenderGameOverlay event:

 

  Reveal hidden contents

 

 

That's the crash log, it's a NullPointer:

 

  Reveal hidden contents

 

 

Please help me, I need to release my mod next two months!

Posted
  On 11/28/2013 at 11:55 PM, GotoLink said:

Is your extended properties registered ?

Does your onEntityConstructing get called ?

1)yes

2)yes

 

Edit: SOLVED! I didn't register the event in clientside too, only serverside! Thanks anyway!

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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