mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
AirBubble and WaterBubble Efficiency
AirBubble now checks to see if the block is water before doing the isRegionProtected() call.
This commit is contained in:
parent
c615437b2d
commit
1434735e8a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue