From e6637b546e5028b9daf1e4a5052001d6230545b4 Mon Sep 17 00:00:00 2001 From: Louis Mau <404uam@users.noreply.github.com> Date: Mon, 22 Oct 2018 07:29:50 -0700 Subject: [PATCH] Update WorldGuardWrapper dependency (#219) --- pom.xml | 2 +- .../de/epiceric/shopchest/listeners/AreaShopListener.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 710ff20..f88a436 100644 --- a/pom.xml +++ b/pom.xml @@ -116,7 +116,7 @@ org.codemc.worldguardwrapper worldguardwrapper - 1.0.0-SNAPSHOT + 1.0.1-SNAPSHOT com.palmergames diff --git a/src/main/java/de/epiceric/shopchest/listeners/AreaShopListener.java b/src/main/java/de/epiceric/shopchest/listeners/AreaShopListener.java index ee35aca..e50c9cb 100644 --- a/src/main/java/de/epiceric/shopchest/listeners/AreaShopListener.java +++ b/src/main/java/de/epiceric/shopchest/listeners/AreaShopListener.java @@ -11,7 +11,7 @@ import me.wiefferink.areashop.regions.GeneralRegion; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.codemc.worldguardwrapper.WorldGuardWrapper; -import org.codemc.worldguardwrapper.implementation.AbstractRegion; +import org.codemc.worldguardwrapper.region.WrappedRegion; public class AreaShopListener implements Listener { @@ -55,7 +55,7 @@ public class AreaShopListener implements Listener { for (Shop shop : plugin.getShopUtils().getShops()) { if (!shop.getLocation().getWorld().getName().equals(generalRegion.getWorldName())) continue; - for (AbstractRegion r : WorldGuardWrapper.getInstance().getRegions(shop.getLocation())) { + for (WrappedRegion r : WorldGuardWrapper.getInstance().getRegions(shop.getLocation())) { if (generalRegion.getLowerCaseName().equals(r.getId())) { plugin.getShopUtils().removeShop(shop, true); break;