This commit is contained in:
Ghost_chu committed 2021-07-25 16:58:10 +08:00
1 parent c593769b90
commit 2cff3ae19f
1 file changed
+6 -2
@@ -612,8 +612,12 @@ public class ShopManager {
public @NotNull List<Shop> getShopsInWorld(@NotNull World world) {
final List<Shop> 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;