From dcbc106e62f39fbe82138a5e51c07f748d7ac15b Mon Sep 17 00:00:00 2001 From: md678685 Date: Wed, 6 Dec 2017 08:37:52 +0000 Subject: [PATCH] Fix powertools when clicking in air (#1657) Should restore behaviour prior to #1534 and fix #1622. --- .../com/earth2me/essentials/EssentialsPlayerListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java index 936071d5e..275b05cf6 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java @@ -584,15 +584,15 @@ public class EssentialsPlayerListener implements Listener { player.sendMessage(tl("bedSet", player.getLocation().getWorld().getName(), player.getLocation().getBlockX(), player.getLocation().getBlockY(), player.getLocation().getBlockZ())); } } - break; + break; case LEFT_CLICK_AIR: if (event.getPlayer().isFlying()) { final User user = ess.getUser(event.getPlayer()); if (user.isFlyClickJump()) { useFlyClickJump(user); + break; } } - break; case LEFT_CLICK_BLOCK: if (event.getItem() != null && event.getItem().getType() != Material.AIR) { final User user = ess.getUser(event.getPlayer()); @@ -600,7 +600,7 @@ public class EssentialsPlayerListener implements Listener { event.setCancelled(true); } } - break; + break; } ess.getUser(event.getPlayer()).updateActivity(true); }