From 98bbd900cb8643e0ba95f7a3c4ec529c08ccda60 Mon Sep 17 00:00:00 2001 From: sk89q Date: Thu, 14 Aug 2014 02:39:42 -0700 Subject: [PATCH] Rename RegionQuery.testEnabled() -> testState(). --- src/main/java/com/sk89q/worldguard/bukkit/RegionQuery.java | 2 +- .../com/sk89q/worldguard/protection/GlobalRegionManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/RegionQuery.java b/src/main/java/com/sk89q/worldguard/bukkit/RegionQuery.java index 967397b5..dda830d6 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/RegionQuery.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/RegionQuery.java @@ -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); diff --git a/src/main/java/com/sk89q/worldguard/protection/GlobalRegionManager.java b/src/main/java/com/sk89q/worldguard/protection/GlobalRegionManager.java index 62c206a3..e355601c 100644 --- a/src/main/java/com/sk89q/worldguard/protection/GlobalRegionManager.java +++ b/src/main/java/com/sk89q/worldguard/protection/GlobalRegionManager.java @@ -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); } }