Skip to content

Commit

Permalink
Revert "Use HashMap for cache"
Browse files Browse the repository at this point in the history
This reverts commit c2fd40d.
  • Loading branch information
Rothes committed Sep 25, 2024
1 parent 03b0ff6 commit 5573d6a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.BiPredicate;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
Expand All @@ -37,7 +38,7 @@ public class ReplacerManager {
private char papiHead;
private char papiTail;
private final List<ReplacerConfig> replacerConfigList = new ArrayList<>();
private final HashMap<ItemStack, HandledItemCache> cacheTable = new HashMap<>();
private final ConcurrentHashMap<ItemStack, HandledItemCache> cacheTable = new ConcurrentHashMap<>();
private PsrTask cleanTask;

public static class HandledItemCache {
Expand Down

0 comments on commit 5573d6a

Please sign in to comment.