- Fixed client crash bug in add/remove Biome functionality. Arrays.asList() returns a fixed-sized list per java spec. Adding and removing biomes throws UnsupportedOperationException.

- Fixed same on server and added disabled removeBiome functionality. This touched a lot of classes as the nonWorking removeBiome seemed to be lots of places inconsistent with addBiome.
This commit is contained in:
Scott Killen committed 2012-06-09 07:59:35 -04:00
1 parent bc72bf11ee
commit abcb583dd0
7 files changed
+47 -33

No files matched your search

@@ -550,6 +550,14 @@ public class FMLServerHandler implements IFMLSidedHandler
WorldType.field_48457_b.addNewBiome(biome);
}
/**
* @param biome
*/
public void removeBiomeFromDefaultWorldGenerator(BiomeGenBase biome)
{
WorldType.field_48457_b.removeBiome(biome);
}
@Override
public Object getMinecraftInstance()
{
+1 -1
View File
@@ -591,7 +591,7 @@ public class ModLoader
*/
public static void removeBiome(BiomeGenBase biome)
{
FMLRegistry.removeBiome(biome);
FMLServerHandler.instance().removeBiomeFromDefaultWorldGenerator(biome);
}
/**
@@ -108,12 +108,6 @@ public class ServerRegistry implements IMinecraftRegistry
}
}
@Override
public void removeBiome(BiomeGenBase biome)
{
// NOOP because broken
}
@Override
public void removeSpawn(Class <? extends EntityLiving > entityClass, EnumCreatureType typeOfCreature, BiomeGenBase... biomes)
{