mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
If we cancel, should be on Highest priority.
This commit is contained in:
parent
80b7cc717f
commit
0d62688343
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user