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); } }