mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
Fix #1318 properly
This commit is contained in:
1 parent
b0698c94c6
commit
a56be73e42
1 file changed
+3
-4
@@ -612,12 +612,11 @@ public class ShopManager {
|
||||
public @NotNull List<Shop> getShopsInWorld(@NotNull World world) {
|
||||
final List<Shop> worldShops = new ArrayList<>();
|
||||
for (final Shop shop : getAllShops()) {
|
||||
try {
|
||||
if (Objects.equals(shop.getLocation().getWorld(), world)) {
|
||||
Location location = shop.getLocation();
|
||||
if (Util.isWorldLoaded(location)) {
|
||||
if (Objects.equals(location.getWorld(), world)) {
|
||||
worldShops.add(shop);
|
||||
}
|
||||
} catch (IllegalArgumentException ignored) {
|
||||
// Rollbar#335
|
||||
}
|
||||
}
|
||||
return worldShops;
|
||||
|
||||
Reference in new issue
Block a user