Skip to content

Commit

Permalink
Fix worldguard compat
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jul 5, 2021
1 parent 622629b commit 36fcf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/citizensnpcs/api/ai/goals/WanderGoal.java
Expand Up @@ -12,7 +12,7 @@
import com.google.common.base.Function;
import com.google.common.base.Supplier;
import com.sk89q.worldedit.bukkit.BukkitAdapter;
import com.sk89q.worldedit.regions.Region;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;

import ch.ethz.globis.phtree.PhTreeSolid;
import net.citizensnpcs.api.CitizensAPI;
Expand Down Expand Up @@ -61,7 +61,7 @@ public Boolean apply(Block block) {
}
if (worldguardRegion != null) {
try {
if (!((Region) worldguardRegion)
if (!((ProtectedRegion) worldguardRegion)
.contains(BukkitAdapter.asBlockVector(block.getLocation())))
return false;
} catch (Throwable t) {
Expand Down

0 comments on commit 36fcf76

Please sign in to comment.