mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-12 10:24:07 +01:00
generate ore correctly
This commit is contained in:
parent
debc7f6ab3
commit
646049594c
@ -251,6 +251,7 @@ public class ClusterManager {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
final Random rand = new Random();
|
final Random rand = new Random();
|
||||||
final World world = Bukkit.getWorld(cluster.world);
|
final World world = Bukkit.getWorld(cluster.world);
|
||||||
|
final PlotWorld plotworld = PlotMain.getWorldSettings(cluster.world);
|
||||||
|
|
||||||
Location bot = getClusterBottom(cluster);
|
Location bot = getClusterBottom(cluster);
|
||||||
Location top = getClusterTop(cluster);
|
Location top = getClusterTop(cluster);
|
||||||
@ -286,7 +287,7 @@ public class ClusterManager {
|
|||||||
TaskManager.runTaskLater(new Runnable() {
|
TaskManager.runTaskLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (populator == null) {
|
if (populator == null || plotworld.CLUSTER_ORE) {
|
||||||
world.regenerateChunk(chunk.getX(), chunk.getZ());
|
world.regenerateChunk(chunk.getX(), chunk.getZ());
|
||||||
chunk.unload();
|
chunk.unload();
|
||||||
chunk.load();
|
chunk.load();
|
||||||
|
Loading…
Reference in New Issue
Block a user