From 646049594c6cd947b1487473aa551c4c265860df Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sat, 31 Jan 2015 20:48:15 +1100 Subject: [PATCH] generate ore correctly --- .../com/intellectualcrafters/plot/util/ClusterManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ClusterManager.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ClusterManager.java index f8ea4f939..a3aa66291 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ClusterManager.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ClusterManager.java @@ -251,6 +251,7 @@ public class ClusterManager { int i = 0; final Random rand = new Random(); final World world = Bukkit.getWorld(cluster.world); + final PlotWorld plotworld = PlotMain.getWorldSettings(cluster.world); Location bot = getClusterBottom(cluster); Location top = getClusterTop(cluster); @@ -286,7 +287,7 @@ public class ClusterManager { TaskManager.runTaskLater(new Runnable() { @Override public void run() { - if (populator == null) { + if (populator == null || plotworld.CLUSTER_ORE) { world.regenerateChunk(chunk.getX(), chunk.getZ()); chunk.unload(); chunk.load();