Skip to content

Commit c3580ce

Browse files
committed
fix CME in SkullModifier
1 parent d66decc commit c3580ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/me/hsgamer/bettergui/modifier/SkullModifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.lang.reflect.Method;
2121
import java.net.URL;
2222
import java.util.*;
23+
import java.util.concurrent.ConcurrentHashMap;
2324
import java.util.regex.Pattern;
2425

2526
/**
@@ -34,7 +35,7 @@ public class SkullModifier implements ItemMetaModifier, ItemMetaComparator {
3435
private static final Pattern MOJANG_SHA256_APPROX = Pattern.compile("[0-9a-z]{55,70}");
3536
private static final SkullMeta delegateSkullMeta;
3637
private static final SkullHandler skullHandler = new SkullHandler();
37-
private static final Map<String, GameProfile> cache = new HashMap<>();
38+
private static final Map<String, GameProfile> cache = new ConcurrentHashMap<>();
3839

3940
static {
4041
ItemStack itemStack;

0 commit comments

Comments
 (0)