onEntityDeath not firing when sheep dies [solved]

Discussion in 'Plugin Development' started by krinsdeath, Jul 12, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    krinsdeath

    This is a bug in CB953, and has been reported.

    As the title says, I'm getting no ENTITY_DEATH event when sheep die. Every other animal or monster that dies fires the event.

    CB953.

    Code:
    
    public class EntityEvents extends EntityListener {
      public Test plugin;
      public Logger log;
    
      public EntityEvents(Test instance) {
        plugin = instance;
        log = plugin.log;
      }
    
      @Override
      public void onEntityDeath(EntityDeathEvent event) {
        log.info(event.getEntity().toString());
      }
    }
    
    Outputs nothing when sheep die, but works for everything else.
     
Thread Status:
Not open for further replies.

Share This Page