mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-25 12:06:16 +01:00
Fix ConcurrentModificationException
This commit is contained in:
parent
1e02539aab
commit
11c6af099b
@ -19,7 +19,7 @@ public class ShopUtils {
|
|||||||
|
|
||||||
// concurrent since it is updated in async task
|
// concurrent since it is updated in async task
|
||||||
private final Map<UUID, Location> playerLocation = new ConcurrentHashMap<>();
|
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 Collection<Shop> shopLocationValues = Collections.unmodifiableCollection(shopLocation.values());
|
||||||
private final ShopChest plugin;
|
private final ShopChest plugin;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user