mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
Closed #1318
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user