Improved Spout biome handling and add LocalWorld method for setting biome

This commit is contained in:
zml2008
2012-03-20 22:45:48 -07:00
parent a8eeacccd4
commit 0702a0f0ac
8 changed files with 89 additions and 14 deletions

View File

@ -208,6 +208,17 @@ public class BukkitWorld extends LocalWorld {
return new BiomeType(bukkitBiome.name());
}
@Override
public void setBiome(Vector2D pt, BiomeType biome) {
Biome bukkitBiome;
try {
bukkitBiome = Biome.valueOf(biome.getName().toUpperCase());
} catch (IllegalArgumentException e) {
return;
}
world.setBiome(pt.getBlockX(), pt.getBlockZ(), bukkitBiome);
}
/**
* Regenerate an area.
*