diff --git a/src/main/java/codechicken/nei/recipe/TemplateRecipeHandler.java b/src/main/java/codechicken/nei/recipe/TemplateRecipeHandler.java index 6d546327f..2a8859f51 100644 --- a/src/main/java/codechicken/nei/recipe/TemplateRecipeHandler.java +++ b/src/main/java/codechicken/nei/recipe/TemplateRecipeHandler.java @@ -8,13 +8,14 @@ import java.awt.Rectangle; import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Random; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutionException; import java.util.concurrent.locks.ReentrantLock; import java.util.stream.Collectors; @@ -311,7 +312,7 @@ public int hashCode() { public static class RecipeTransferRectHandler implements IContainerInputHandler, IContainerTooltipHandler { - private static final HashMap, HashSet> guiMap = new HashMap<>(); + private static final Map, HashSet> guiMap = new ConcurrentHashMap<>(); public static void registerRectsToGuis(List> classes, List rects) {