Fix ConcurrentModificationException

This commit is contained in:
Eric 2018-08-03 17:39:20 +02:00
parent 1e02539aab
commit 11c6af099b
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class ShopUtils {
// concurrent since it is updated in async task
private final Map<UUID, Location> playerLocation = new ConcurrentHashMap<>();
private final Map<Location, Shop> shopLocation = new HashMap<>();
private final Map<Location, Shop> shopLocation = new ConcurrentHashMap<>();
private final Collection<Shop> shopLocationValues = Collections.unmodifiableCollection(shopLocation.values());
private final ShopChest plugin;