From 1434735e8adccdecded09741eda9fcda0938b0e4 Mon Sep 17 00:00:00 2001 From: nathank33 Date: Sat, 6 Sep 2014 19:07:24 -0700 Subject: [PATCH] AirBubble and WaterBubble Efficiency AirBubble now checks to see if the block is water before doing the isRegionProtected() call. --- src/com/projectkorra/ProjectKorra/airbending/AirBubble.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java b/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java index 7f88b141..f042bade 100644 --- a/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java +++ b/src/com/projectkorra/ProjectKorra/airbending/AirBubble.java @@ -79,6 +79,8 @@ public class AirBubble { for (Block block : Methods.getBlocksAroundPoint(location, radius)) { if (waterorigins.containsKey(block)) continue; + if (!Methods.isWater(block)) + continue; if (Methods.isRegionProtectedFromBuild(player, "AirBubble", block.getLocation())) continue;