From acf4b83c79e613d13a349db558ef2c9072b0522d Mon Sep 17 00:00:00 2001 From: MistPhizzle Date: Sat, 27 Dec 2014 11:10:50 -0500 Subject: [PATCH] Air/WaterBubble will only work if player is sneaking. --- .../projectkorra/ProjectKorra/airbending/AirBubble.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java b/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java index f042bade..6a91fb95 100644 --- a/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java +++ b/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java @@ -104,6 +104,11 @@ public class AirBubble { removeBubble(); return false; } + + if (!player.isSneaking()) { + removeBubble(); + return false; + } if (Methods.getBoundAbility(player) != null) { if (Methods.getBoundAbility(player).equalsIgnoreCase("AirBubble") && Methods.canBend(player.getName(), "AirBubble")) { pushWater(); @@ -131,7 +136,7 @@ public class AirBubble { for (Player player : server.getOnlinePlayers()) { if (Methods.getBoundAbility(player) != null) { if (Methods.getBoundAbility(player).equalsIgnoreCase("AirBubble") || Methods.getBoundAbility(player).equalsIgnoreCase("WaterBubble")) { - if (!instances.containsKey(player.getEntityId())) { + if (!instances.containsKey(player.getEntityId()) && player.isSneaking()) { new AirBubble(player); } }