Rename RegionQuery.testEnabled() -> testState().

This commit is contained in:
sk89q 2014-08-14 02:39:42 -07:00
parent 19b87b628a
commit 98bbd900cb
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public boolean testPermission(Location location, StateFlag... flags) {
* @param flag the flag
* @return true if the flag evaluates to {@code ALLOW}
*/
public boolean testEnabled(Location location, StateFlag flag) {
public boolean testState(Location location, StateFlag flag) {
checkNotNull(location);
checkNotNull(flag);

View File

@ -233,7 +233,7 @@ public boolean allows(StateFlag flag, Location location) {
*/
@Deprecated
public boolean allows(StateFlag flag, Location location, @Nullable LocalPlayer player) {
return createQuery(player).testEnabled(location, flag);
return createQuery(player).testState(location, flag);
}
}