From a1af1d1ee32554adf1a840fb48adba0e0fca9a9e Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 10 May 2015 12:35:26 +1000 Subject: [PATCH] Revert "Biome corrections" This reverts commit 698fa18082eccbf87fe213d814ae48f853b51edb. --- .../plot/object/PlotGenerator.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/PlotGenerator.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/PlotGenerator.java index 2387316fa..e0a8e9868 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/PlotGenerator.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/PlotGenerator.java @@ -70,15 +70,6 @@ public abstract class PlotGenerator extends ChunkGenerator { return (List)(List) getPopulators(WorldEvents.getName(world)); } - private Biome getBiome(String input) { - for (Biome biome : Biome.values()) { - if (biome.name().equalsIgnoreCase(input)) { - return biome; - } - } - return Biome.FOREST; - } - @Override public short[][] generateExtBlockSections(World world, Random r, int cx, int cz, BiomeGrid biomes) { final int prime = 13; @@ -92,7 +83,7 @@ public abstract class PlotGenerator extends ChunkGenerator { plotworld = getNewPlotWorld(world.getName()); PlotSquared.addPlotWorld(world.getName(), plotworld, getPlotManager()); } - Biome biome = getBiome(plotworld.PLOT_BIOME); + Biome biome = Biome.valueOf(plotworld.PLOT_BIOME); this.X = cx << 4; this.Z = cz << 4; if (ChunkManager.FORCE_PASTE) {