Skip to content

Commit

Permalink
Adjusted event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 23, 2018
1 parent 223c7a3 commit 2765aa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ public void onVisitorGetDamage(EntityDamageEvent e){
* Protect players from damage when teleporting
* @param e - event
*/
@EventHandler
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void onPlayerTeleportDamage(EntityDamageEvent e){
if(!(e.getEntity() instanceof Player)) return;

Expand Down

0 comments on commit 2765aa8

Please sign in to comment.