Skip to content

Commit

Permalink
sk_region_intersect should return an emtpy array instead of false.
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin committed Apr 8, 2013
1 parent 6cbbf9f commit 096c7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/laytonsmith/core/functions/WorldEdit.java
Expand Up @@ -401,7 +401,7 @@ public Integer[] numArgs() {
}

public String docs() {
return "boolean {world, region1, [array(region2, [regionN...])]} Returns an array of regions names which intersect with defined region."
return "array {world, region1, [array(region2, [regionN...])]} Returns an array of regions names which intersect with defined region."
+ " You can pass an array of regions to verify or omit this parameter and all regions in selected world will be checked.";
}

Expand Down Expand Up @@ -467,7 +467,7 @@ public Construct exec(Target t, Environment env, Construct... args) throws Cance
}
} catch (Exception e) {
}
return new CBoolean(false, t);
return new CArray(t);
}
}

Expand Down

0 comments on commit 096c7d7

Please sign in to comment.