mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 03:59:37 +00:00
Change OreDictCache to hit the hash map one fewer time.
This commit is contained in:
1 parent
125ac34c01
commit
16fc882da7
1 file changed
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user