mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
*
This commit is contained in:
parent
c9cee8a4a8
commit
af99c6a706
@ -245,17 +245,18 @@ public abstract class HybridUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!chunks.isEmpty()) {
|
if (!chunks.isEmpty()) {
|
||||||
while (System.currentTimeMillis() < 10 && !chunks.isEmpty()) {
|
TaskManager.IMP.sync(new RunnableVal<Object>() {
|
||||||
Iterator<ChunkLoc> iterator = chunks.iterator();
|
@Override
|
||||||
final ChunkLoc chunk = iterator.next();
|
public void run(Object value) {
|
||||||
iterator.remove();
|
long start = System.currentTimeMillis();
|
||||||
TaskManager.IMP.sync(new RunnableVal<Object>() {
|
while (System.currentTimeMillis() - start < 20 && !chunks.isEmpty()) {
|
||||||
@Override
|
Iterator<ChunkLoc> iterator = chunks.iterator();
|
||||||
public void run(Object value) {
|
final ChunkLoc chunk = iterator.next();
|
||||||
|
iterator.remove();
|
||||||
regenerateRoad(area, chunk, extend);
|
regenerateRoad(area, chunk, extend);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user