Can't set exp drops to EnderDragon when is death

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      OS: Ubuntu 12.04
      Spigot: 1.10

      Title say all, no errors in console only my plugin. The dragon the first time drops 68 level, the next times 19 but with this event I should change the level but remains constant!

              private int random(int min, int max){
      		return (int) ((Math.random() * max) + min);
      	}
      	
      	@EventHandler(priority=EventPriority.NORMAL, ignoreCancelled=true)
      	public void onEntityDeath(EntityDeathEvent ev){
      		Entity e = ev.getEntity();
      		
      		if(e instanceof EnderDragon){
      			ev.setDroppedExp(0);
      		}else
      			return;
      	}
      

            Assignee:
            Marvin Rieple
            Reporter:
            Matt
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: