Avoid caching the same recipe map more than once.
This commit is contained in:
parent
e4f8398a92
commit
9a533aa074
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue