forked from mirror/BlueMap
Tweaks
This commit is contained in:
parent
0f48bf6428
commit
b4215a1482
@ -38,7 +38,10 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.*;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
import java.util.stream.Stream;
|
||||
@ -116,6 +119,7 @@ private CoreConfig loadCoreConfig(Path defaultDataFolder, boolean useMetricsConf
|
||||
.setConditional("metrics", useMetricsConfig)
|
||||
.setVariable("timestamp", LocalDateTime.now().withNano(0).toString())
|
||||
.setVariable("version", BlueMap.VERSION)
|
||||
.setVariable("mcVersion", minecraftVersion)
|
||||
.setVariable("data", formatPath(defaultDataFolder))
|
||||
.setVariable("implementation", "bukkit")
|
||||
.setVariable("render-thread-count", Integer.toString(suggestRenderThreadCount()))
|
||||
|
@ -29,7 +29,7 @@ scan-for-mod-resources: true
|
||||
${metrics<<
|
||||
# If this is true, BlueMap might send really basic metrics reports containing only the implementation-type and the version that is being used to https://metrics.bluecolored.de/bluemap/
|
||||
# This allows me to track the basic usage of BlueMap and helps me stay motivated to further develop this tool! Please leave it on :)
|
||||
# An example report looks like this: {"implementation":"${implementation}","version":"${version}"}
|
||||
# An example report looks like this: {"implementation":"${implementation}","version":"${version}","mcVersion":"${mcVersion}"}
|
||||
# Default is true
|
||||
metrics: true
|
||||
>>}
|
||||
|
@ -64,17 +64,17 @@ public DataPack(int packVersion) {
|
||||
|
||||
@Override
|
||||
public void loadResources(Iterable<Path> roots) throws IOException, InterruptedException {
|
||||
Logger.global.logInfo("Loading datapack...");
|
||||
Logger.global.logDebug("Loading datapack...");
|
||||
|
||||
for (Path root : roots) {
|
||||
Logger.global.logDebug("Loading datapack from: " + root + " ...");
|
||||
loadResources(root);
|
||||
}
|
||||
|
||||
Logger.global.logInfo("Baking datapack...");
|
||||
Logger.global.logDebug("Baking datapack...");
|
||||
bake();
|
||||
|
||||
Logger.global.logInfo("Datapack loaded.");
|
||||
Logger.global.logDebug("Datapack loaded.");
|
||||
}
|
||||
|
||||
private void loadResources(Path root) throws InterruptedException, IOException {
|
||||
|
Loading…
Reference in New Issue
Block a user