mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Improved Spout biome handling and add LocalWorld method for setting biome
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user