From 9fe1e53d9d7bf0ffca0dfddc6ed59ddbea7c5cb5 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 15 Apr 2018 10:47:00 +1000 Subject: [PATCH] Fix single generator biomes --- .../bukkit/generator/BukkitPlotGenerator.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java index ab68c3e32..c9b7c3169 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java @@ -255,7 +255,14 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap public ChunkData generateChunkData(World world, Random random, int cx, int cz, BiomeGrid grid) { GenChunk result = this.chunkSetter; if (this.getPlotGenerator() instanceof SingleWorldGenerator) { - if (result.cd != null) return result.cd; + if (result.cd != null) { + for (int x = 0; x < 16; x++) { + for (int z = 0; z < 16; z++) { + grid.setBiome(x, z, Biome.PLAINS); + } + } + return result.cd; + } } // Set the chunk location result.setChunk(new ChunkWrapper(world.getName(), cx, cz));