mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
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:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user