diff --git a/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java b/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java index 8a50e4e00..6abf25b8b 100644 --- a/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java +++ b/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java @@ -612,8 +612,12 @@ public class ShopManager { public @NotNull List getShopsInWorld(@NotNull World world) { final List worldShops = new ArrayList<>(); for (final Shop shop : getAllShops()) { - if (Objects.equals(shop.getLocation().getWorld(), world)) { - worldShops.add(shop); + try { + if (Objects.equals(shop.getLocation().getWorld(), world)) { + worldShops.add(shop); + } + } catch (IllegalArgumentException ignored) { + // Rollbar#335 } } return worldShops;