mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fix nukkit augmented generator
This commit is contained in:
@ -486,7 +486,7 @@ public class PS{
|
||||
HashMap<PlotId, Plot> plots;
|
||||
if (plots_tmp == null || (plots = plots_tmp.remove(plotArea.toString())) == null) {
|
||||
if (plotArea.TYPE == 2) {
|
||||
plots = this.plots_tmp.get(plotArea.worldname);
|
||||
plots = this.plots_tmp != null ? this.plots_tmp.get(plotArea.worldname) : null;
|
||||
if (plots != null) {
|
||||
Iterator<Entry<PlotId, Plot>> iterator = plots.entrySet().iterator();
|
||||
while (iterator.hasNext()) {
|
||||
@ -507,7 +507,7 @@ public class PS{
|
||||
Set<PlotCluster> clusters;
|
||||
if (clusters_tmp == null || (clusters = clusters_tmp.remove(plotArea.toString())) == null) {
|
||||
if (plotArea.TYPE == 2) {
|
||||
clusters = this.clusters_tmp.get(plotArea.worldname);
|
||||
clusters = this.clusters_tmp != null ? this.clusters_tmp.get(plotArea.worldname) : null;
|
||||
if (clusters != null) {
|
||||
Iterator<PlotCluster> iterator = clusters.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
|
@ -414,7 +414,12 @@ public class Area extends SubCommand {
|
||||
public void run(ChunkLoc value) {
|
||||
AugmentedUtils.generate(area.worldname, value.x, value.z, null);
|
||||
}
|
||||
}, null);
|
||||
}, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
player.sendMessage("Regen complete");
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
case "goto":
|
||||
|
Reference in New Issue
Block a user