mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fix null pointer exception in BiomeDictionary causing the ChunkManager's config to not load/save.
This commit is contained in:
1 parent
b0f8d495bb
commit
217d5562ff
1 file changed
+9
-5
@@ -201,18 +201,22 @@ public class BiomeDictionary
|
||||
*/
|
||||
public static void registerAllBiomesAndGenerateEvents()
|
||||
{
|
||||
for(int i = 0; i < BIOME_LIST_SIZE; i++)
|
||||
for(int i = 0; i < BiomeGenBase.biomeList.length; i++)
|
||||
{
|
||||
BiomeGenBase biome = BiomeGenBase.biomeList[i];
|
||||
|
||||
if(biome == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (biome.theBiomeDecorator instanceof DeferredBiomeDecorator)
|
||||
{
|
||||
DeferredBiomeDecorator decorator = (DeferredBiomeDecorator) biome.theBiomeDecorator;
|
||||
decorator.fireCreateEventAndReplace();
|
||||
}
|
||||
if(biome != null)
|
||||
{
|
||||
checkRegistration(biome);
|
||||
}
|
||||
|
||||
checkRegistration(biome);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user