onNpcDeathEvent bug?

  • Hi! Me again! I hear the groans! :P


    I'm testing the event methods with a system output line and believe I've stumbled on a bug? Here is my test method:


    Code
    @EventMethod
    public void onNpcDeathEvent(NpcDeathEvent event) {
    System.out.println("NPC Death Event called. . .");
    }


    I spawned a bunch of pigs, and started to slaughter them (I know the vegans are screaming out - trust me it was all done humanly!).


    I tested the following weapons, [war hammer, long sword, small mace, mace, morning star, small battleaxe, pickaxe, axe, stone-axe, sword] all worked fine and I saw the following in the console.




    Code
    NPC Death Event called. . .
    NPC (ID: integer) deleted!



    However, it appears that projectile weapons such as the musket and crossbow do not invoke this event method resulting in the console output:



    Code
    NPC (ID: integer) deleted!

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!