Fix nukkit augmented generator

This commit is contained in:
Jesse Boyd
2018-07-27 13:25:46 +10:00
parent 2d98da47cf
commit 645c5fb529
5 changed files with 28 additions and 16 deletions

View File

@ -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()) {

View File

@ -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":