Permalink
Browse files

Make global regions still accept true for isWithinArea

  • Loading branch information...
me4502 committed Apr 8, 2017
1 parent 37aebef commit 491d0167ff715e27be0d41cc0fd82c20971797be
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/main/java/com/sk89q/craftbook/util/SearchArea.java
@@ -170,11 +170,9 @@ public static boolean isValidArea(Block block, String line) {
public boolean isWithinArea(Location location) {
if(hasRegion()) {
-
- if(region.contains(BukkitUtil.toVector(location)) && location.getWorld().equals(world))
+ if(!region.isPhysicalArea() || region.contains(BukkitUtil.toVector(location)) && location.getWorld().equals(world))
return true;
} else if(hasRadiusAndCenter()) {
-
if(LocationUtil.isWithinRadius(location, center, radius))
return true;
} else

0 comments on commit 491d016

Please sign in to comment.