Change OreDictCache to hit the hash map one fewer time.

This commit is contained in:
sk89q 2014-09-30 12:18:37 -07:00
parent 125ac34c01
commit 16fc882da7

View file

@ -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);