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:
zml2008
2012-05-26 10:55:14 -07:00
parent 5cab7900f6
commit 7b0570f714
2 changed files with 7 additions and 1 deletions

View File

@ -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());
}
}