Jump to content

Recommended Posts

Posted

Hi! My game crashes when this line EntityPlayer player = (EntityPlayer) event.entity; runs and I don't know why.

Here is my class:

 

  Reveal hidden contents

 

And here is the crash:

 

  Reveal hidden contents

 

Woking at my first mod, Blocks & Items Revolution : https://github.com/megabitus98/Blocks-Items-Revolution

Posted

Caused by: java.lang.ClassCastException: net.minecraft.entity.passive.EntityChicken cannot be cast to net.minecraft.entity.player.EntityPlayer

The LivingUpdateEvent triggers for all living things, including chickens (which, are not players).

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.