From b8ae8664acabe851b9cac3817bc92e3391970cb5 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 9 Jun 2012 10:47:43 -0400 Subject: [PATCH] Fix up bukkit for biome code --- fml/bukkit/cpw/mods/fml/server/FMLBukkitHandler.java | 8 ++++++++ fml/bukkit/net/minecraft/server/BukkitRegistry.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fml/bukkit/cpw/mods/fml/server/FMLBukkitHandler.java b/fml/bukkit/cpw/mods/fml/server/FMLBukkitHandler.java index 1db46fb87..18f8aed7e 100644 --- a/fml/bukkit/cpw/mods/fml/server/FMLBukkitHandler.java +++ b/fml/bukkit/cpw/mods/fml/server/FMLBukkitHandler.java @@ -529,6 +529,14 @@ public class FMLBukkitHandler implements IFMLSidedHandler WorldType.NORMAL.addNewBiome(biome); } + /** + * @param biome + */ + public void removeBiomeFromDefaultWorldGenerator(BiomeBase biome) + { + WorldType.NORMAL.removeBiome(biome); + } + @Override public Object getMinecraftInstance() { return server; diff --git a/fml/bukkit/net/minecraft/server/BukkitRegistry.java b/fml/bukkit/net/minecraft/server/BukkitRegistry.java index 13b7a4581..444966adf 100644 --- a/fml/bukkit/net/minecraft/server/BukkitRegistry.java +++ b/fml/bukkit/net/minecraft/server/BukkitRegistry.java @@ -115,7 +115,7 @@ public class BukkitRegistry implements IMinecraftRegistry @Override public void removeBiome(BiomeGenBase biome) { - // TODO + FMLBukkitHandler.instance().removeBiomeFromDefaultWorldGenerator((BiomeBase)biome); } @Override