From 11c6af099b27a1c5056c3456d2997c96be50088a Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 3 Aug 2018 17:39:20 +0200 Subject: [PATCH] Fix ConcurrentModificationException --- src/main/java/de/epiceric/shopchest/utils/ShopUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java index d3be65a..2e59859 100644 --- a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java +++ b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java @@ -19,7 +19,7 @@ public class ShopUtils { // concurrent since it is updated in async task private final Map playerLocation = new ConcurrentHashMap<>(); - private final Map shopLocation = new HashMap<>(); + private final Map shopLocation = new ConcurrentHashMap<>(); private final Collection shopLocationValues = Collections.unmodifiableCollection(shopLocation.values()); private final ShopChest plugin;