If we cancel, should be on Highest priority.

This commit is contained in:
GJ 2013-02-18 10:07:54 -05:00
parent 80b7cc717f
commit 0d62688343

View File

@ -351,7 +351,7 @@ public class EntityListener implements Listener {
tamingManager.awardTamingXP(event); tamingManager.awardTamingXP(event);
} }
@EventHandler (ignoreCancelled = true) @EventHandler (priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onEntityTarget(EntityTargetEvent event) { public void onEntityTarget(EntityTargetEvent event) {
if (event.getEntity() instanceof Tameable && event.getTarget() instanceof Player) { if (event.getEntity() instanceof Tameable && event.getTarget() instanceof Player) {
Player player = (Player) event.getTarget(); Player player = (Player) event.getTarget();