Avoid caching the same recipe map more than once.

This commit is contained in:
Alkalus 2020-04-06 21:49:53 +01:00
parent e4f8398a92
commit 9a533aa074

View file

@ -18,7 +18,9 @@ public class GT_ProcessingArray_Manager {
} }
String aMapNameKey = aMap.mUnlocalizedName; String aMapNameKey = aMap.mUnlocalizedName;
mMetaKeyMap.put(aMeta, aMapNameKey); mMetaKeyMap.put(aMeta, aMapNameKey);
mRecipeCache.put(aMapNameKey, aMap); if (!mRecipeCache.containsKey(aMapNameKey)) {
mRecipeCache.put(aMapNameKey, aMap);
}
return true; return true;
} }