Use BiomeGenBase's array size instead of hardcoding it in BiomeDictionary. Closes #871

This commit is contained in:
Lex Manos committed 2014-04-02 23:46:52 -07:00
1 parent 5f62afb5f2
commit 14b9d639a2
1 file changed
+1 -1
@@ -29,7 +29,7 @@ public class BiomeDictionary
MAGICAL;
}
private static final int BIOME_LIST_SIZE = 256;
private static final int BIOME_LIST_SIZE = BiomeGenBase.getBiomeGenArray().length;
private static BiomeInfo[] biomeList = new BiomeInfo[BIOME_LIST_SIZE];
@SuppressWarnings("unchecked")
private static ArrayList<BiomeGenBase>[] typeInfoList = new ArrayList[Type.values().length];