mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Use BaseBlocks in regenallroads and minor cleanup of HybridUtils.
Fixes #2210
This commit is contained in:
parent
3156741664
commit
8c52e20736
@ -162,8 +162,6 @@ public abstract class HybridUtils {
|
||||
} else {
|
||||
final Runnable task = this;
|
||||
TaskManager.runTaskAsync(new Runnable() {
|
||||
private long last = System.currentTimeMillis();
|
||||
|
||||
@Override public void run() {
|
||||
try {
|
||||
if (chunks.size() < 1024) {
|
||||
@ -212,11 +210,7 @@ public abstract class HybridUtils {
|
||||
PlotSquared.debug("&d - Potentially skipping 1024 chunks");
|
||||
PlotSquared.debug("&d - TODO: recommend chunkster if corrupt");
|
||||
}
|
||||
GlobalBlockQueue.IMP.addTask(new Runnable() {
|
||||
@Override public void run() {
|
||||
TaskManager.runTaskLater(task, 20);
|
||||
}
|
||||
});
|
||||
GlobalBlockQueue.IMP.addTask(() -> TaskManager.runTaskLater(task, 20));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -358,7 +352,7 @@ public abstract class HybridUtils {
|
||||
if (blocks != null) {
|
||||
for (int y = 0; y < blocks.length; y++) {
|
||||
if (blocks[y] != null) {
|
||||
PlotBlock block = PlotBlock.get(blocks[y]);
|
||||
BaseBlock block = blocks[y];
|
||||
queue.setBlock(x + X + plotWorld.ROAD_OFFSET_X, minY + y,
|
||||
z + Z + plotWorld.ROAD_OFFSET_Z, block);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user