Regenallroads:

- remove the "estimated time" as it's just not remotely correct, nor would it be correct if it were based on actual chunk number
 - fix the air to be pasted above the road when using regenallroads
This commit is contained in:
dordsor21 2019-01-10 12:49:43 +00:00
parent b288a2de01
commit aff5476110
2 changed files with 5 additions and 3 deletions

View file

@ -49,11 +49,11 @@ public class RegenAllRoads extends SubCommand {
MainUtil.sendMessage(player, C.NOT_VALID_PLOT_WORLD);
return false;
}
Set<ChunkLoc> chunks = ChunkManager.manager.getChunkChunks(name);
//Set<ChunkLoc> chunks = ChunkManager.manager.getChunkChunks(name);
MainUtil.sendMessage(player, "&cIf no schematic is set, the following will not do anything");
MainUtil.sendMessage(player, "&7 - To set a schematic, stand in a plot and use &c/plot createroadschematic");
MainUtil.sendMessage(player, "&6Potential chunks to update: &7" + (chunks.size() * 1024));
MainUtil.sendMessage(player, "&6Estimated time: &7" + chunks.size() + " seconds");
//MainUtil.sendMessage(player, "&6Potential chunks to update: &7" + (chunks.size() * 1024));
//MainUtil.sendMessage(player, "&6Estimated time: &7" + chunks.size() + " seconds");
boolean result = HybridUtils.manager.scheduleRoadUpdate(area, height);
if (!result) {
MainUtil.sendMessage(player, "&cCannot schedule mass schematic update! (Is one already in progress?)");

View file

@ -415,6 +415,8 @@ public abstract class HybridUtils {
PlotBlock block = PlotBlock.get(blocks[y]);
if (block != null) {
queue.setBlock(x + X + plotWorld.ROAD_OFFSET_X, minY + y, z + Z + plotWorld.ROAD_OFFSET_Z, block);
} else if (y <= extend) {
queue.setBlock(x + X + plotWorld.ROAD_OFFSET_X, minY + y, z + Z + plotWorld.ROAD_OFFSET_Z, PlotBlock.EVERYTHING);
}
}
}