Combined/EntityDamage allows to ignore cancelled events.

This commit is contained in:
asofold 2012-11-05 13:12:27 +01:00
parent cf89b93095
commit e73620e5c2

View File

@ -54,7 +54,7 @@ public class CombinedListener implements Listener {
}
}
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onEntityDamage(final EntityDamageEvent event){
final Entity entity = event.getEntity();
if (!(entity instanceof Player)) return;