Added config for verbose logging )on by default, #41)
This commit is contained in:
parent
887cb3c8f1
commit
87d0c8b07e
7 changed files with 28 additions and 12 deletions
|
@ -45,6 +45,7 @@ public abstract class Config {
|
|||
DataExchangeAPI.addAutoSyncFile(aid.modID, aid.uniqueID, keeper.getConfigFile());
|
||||
|
||||
AUTO_SYNC_CONFIGS.put(aid, this);
|
||||
|
||||
BCLib.LOGGER.info("Added Config " + configID + " to auto sync (" + (diffContent
|
||||
? "content diff"
|
||||
: "file hash") + ")");
|
||||
|
|
|
@ -20,6 +20,7 @@ public class Configs {
|
|||
public static final BiomesConfig BIOMES_CONFIG = new BiomesConfig();
|
||||
|
||||
public static final String MAIN_PATCH_CATEGORY = "patches";
|
||||
public static final String MAIN_LOG_CATEGORY = "logs";
|
||||
|
||||
public static void save() {
|
||||
MAIN_CONFIG.saveChanges();
|
||||
|
|
|
@ -3,6 +3,11 @@ package org.betterx.bclib.config;
|
|||
import org.betterx.bclib.BCLib;
|
||||
|
||||
public class MainConfig extends NamedPathConfig {
|
||||
public static final ConfigToken<Boolean> VERBOSE_LOGGING = ConfigToken.Boolean(
|
||||
true,
|
||||
"verbose",
|
||||
Configs.MAIN_LOG_CATEGORY
|
||||
);
|
||||
public static final ConfigToken<Boolean> APPLY_PATCHES = ConfigToken.Boolean(
|
||||
true,
|
||||
"applyPatches",
|
||||
|
@ -30,4 +35,8 @@ public class MainConfig extends NamedPathConfig {
|
|||
public boolean repairBiomes() {
|
||||
return get(REPAIR_BIOMES);
|
||||
}
|
||||
|
||||
public boolean verboseLogging() {
|
||||
return get(VERBOSE_LOGGING);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue