mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-08 20:01:25 +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