Use worldedit to regenerate chunks. (#2708)

* Use worldedit to regeneration chunks. It's very slow, but it works.

* Use the AutoClose-ness of EditSession
This commit is contained in:
dordsor21
2020-03-20 12:05:13 +00:00
committed by GitHub
parent d9f9d7dc34
commit 3d47d7e73f
3 changed files with 22 additions and 6 deletions

View File

@ -187,7 +187,7 @@ public class HybridPlotManager extends ClassicPlotManager {
ChunkManager.chunkTask(pos1, pos2, new RunnableVal<int[]>() {
@Override public void run(int[] value) {
// If the chunk isn't near the edge and it isn't an augmented world we can just regen the whole chunk
if (canRegen && (value[6] == 0) && PlotSquared.imp().getServerVersion()[1] == 13) {
if (canRegen && (value[6] == 0)) {
queue.regenChunk(value[0], value[1]);
return;
}