mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-03 11:56:40 +00:00
Correctly nullcheck biome types in //setbiome
Biome changing is no longer supported in SpoutAPI, will reimplement when I have time
This commit is contained in:
@ -213,7 +213,8 @@ public class SpoutWorld extends LocalWorld {
|
||||
if (biome instanceof SpoutBiomeType &&
|
||||
world.getGenerator() instanceof BiomeGenerator) {
|
||||
BiomeGenerator gen = (BiomeGenerator) world.getGenerator();
|
||||
gen.setBiome(new Vector3(pt.getBlockX(), 0, pt.getBlockZ()), ((SpoutBiomeType) biome).getSpoutBiome());
|
||||
throw new UnsupportedOperationException("Biome changing is not yet supported in Spout");
|
||||
//gen.setBiome(new Vector3(pt.getBlockX(), 0, pt.getBlockZ()), ((SpoutBiomeType) biome).getSpoutBiome());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user