mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Use java 8 collection functions
This commit is contained in:
1 parent
9675585891
commit
8581225da8
19 files changed
+45
-142
No files matched your search
@@ -360,13 +360,7 @@ public class BiomeDictionary
|
||||
//Internal implementation
|
||||
private static BiomeInfo getBiomeInfo(Biome biome)
|
||||
{
|
||||
BiomeInfo info = biomeInfoMap.get(biome.getRegistryName());
|
||||
if (info == null)
|
||||
{
|
||||
info = new BiomeInfo();
|
||||
biomeInfoMap.put(biome.getRegistryName(), info);
|
||||
}
|
||||
return info;
|
||||
return biomeInfoMap.computeIfAbsent(biome.getRegistryName(), k -> new BiomeInfo());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user