geforkt von Mirrors/FastAsyncWorldEdit
Ensure regen step not running on the main thread (#2185)
Dieser Commit ist enthalten in:
Ursprung
488a2e5de4
Commit
c86dfe45df
@ -253,10 +253,13 @@ public abstract class Regenerator<IChunkAccess, ProtoChunk extends IChunkAccess,
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else { // Concurrency.NONE or generateConcurrent == false
|
} else { // Concurrency.NONE or generateConcurrent == false
|
||||||
// run sequential
|
// run sequential but submit to different thread
|
||||||
|
// running regen on the main thread otherwise triggers async-only events on the main thread
|
||||||
|
executor.submit(() -> {
|
||||||
for (long xz : coords) {
|
for (long xz : coords) {
|
||||||
chunkStatus.processChunkSave(xz, worldlimits.get(radius).get(xz));
|
chunkStatus.processChunkSave(xz, worldlimits.get(radius).get(xz));
|
||||||
}
|
}
|
||||||
|
}).get(); // wait until finished this step
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren