Add new debug options to plugin config

This commit is contained in:
Astrashh committed 2021-05-03 11:39:45 +10:00
1 parent 9ea8dc7eee
commit f7ea81cb51
8 files changed
+46 -32

No files matched your search

@@ -177,11 +177,6 @@ public class TerraFabricPlugin implements TerraPlugin, ModInitializer {
return dataFolder;
}
@Override
public boolean isDebug() {
return true;
}
@Override
public Language getLanguage() {
return LangUtil.getLanguage();
@@ -303,6 +298,9 @@ public class TerraFabricPlugin implements TerraPlugin, ModInitializer {
LangUtil.load(config.getLanguage(), this);
logger.info("Initializing Terra...");
debugLogger.setDebug(config.isDebugLogging());
if(config.isDebugProfiler()) profiler.start();
if(!addonRegistry.loadAll()) {
throw new IllegalStateException("Failed to load addons. Please correct addon installations to continue.");
}