Change OreDictCache to hit the hash map one fewer time.
This commit is contained in:
parent
125ac34c01
commit
16fc882da7
1 changed files with 3 additions and 2 deletions
|
@ -24,10 +24,11 @@ public final class OreDictCache
|
|||
}
|
||||
|
||||
ItemInfo info = ItemInfo.get(check);
|
||||
List<String> cached = cachedKeys.get(info);
|
||||
|
||||
if(cachedKeys.get(info) != null)
|
||||
if(cached != null)
|
||||
{
|
||||
return cachedKeys.get(info);
|
||||
return cached;
|
||||
}
|
||||
|
||||
int[] idsFound = OreDictionary.getOreIDs(check);
|
||||
|
|
Loading…
Reference in a new issue