Fix for ClassCastException when attempting to fetch Biome types from BiomeDictionary

Attempting to fetch the BiomeDictionary types linked to a biome throws a ClassCastException. This fixes that
This commit is contained in:
Azanor committed 2013-04-19 14:08:53 +03:00
1 parent cf90eb37f7
commit 09dd117d1d
1 file changed
+2 -2
@@ -116,7 +116,7 @@ public class BiomeDictionary
if(biomeList[biome.biomeID] != null)
{
return (Type[])biomeList[biome.biomeID].typeList.toArray();
return (Type[])biomeList[biome.biomeID].typeList.toArray(new Type[0]);
}
return new Type[0];
@@ -298,4 +298,4 @@ public class BiomeDictionary
registerBiomeType(extremeHillsEdge, MOUNTAIN );
registerBiomeType(mushroomIslandShore, MUSHROOM, BEACH);
}
}
}