Skip to content

Commit

Permalink
QuickShop4Adapter now makes use of the included API
Browse files Browse the repository at this point in the history
  • Loading branch information
alex9849 committed Apr 19, 2020
1 parent b08c3e1 commit fd75ba5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.util.Vector;
import org.maxgamer.quickshop.QuickShop;
import org.maxgamer.quickshop.api.QuickShopAPI;
import org.maxgamer.quickshop.shop.Shop;

import java.util.HashMap;
Expand All @@ -28,10 +28,11 @@ public void deleteShops(Region region) {
}
}


HashMap<Location, Shop> shopMap = new HashMap<>();

for(Chunk chunk : chuckLocations) {
Map<Location, Shop> shopsInChunk = QuickShop.getPlugin(QuickShop.class).getShopManager().getShops(chunk);
Map<Location, Shop> shopsInChunk = QuickShopAPI.getShopAPI().getShop(chunk);
if(shopsInChunk != null) {
shopMap.putAll(shopsInChunk);
}
Expand Down

0 comments on commit fd75ba5

Please sign in to comment.