mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-04 00:45:57 +00:00
properly initialize config.yml
This commit is contained in:
parent
bda3594025
commit
ddf1334f6f
@ -88,6 +88,11 @@ public abstract class AbstractTerraPlugin implements TerraPlugin {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
config.load(this); // load config.yml
|
||||||
|
|
||||||
|
LangUtil.load(config.getLanguage(), this); // load language
|
||||||
|
|
||||||
if(config.dumpDefaultConfig()) {
|
if(config.dumpDefaultConfig()) {
|
||||||
try(InputStream resourcesConfig = getClass().getResourceAsStream("/resources.yml")) {
|
try(InputStream resourcesConfig = getClass().getResourceAsStream("/resources.yml")) {
|
||||||
if(resourcesConfig == null) {
|
if(resourcesConfig == null) {
|
||||||
@ -121,10 +126,6 @@ public abstract class AbstractTerraPlugin implements TerraPlugin {
|
|||||||
getDebugLogger().info("Skipping resource dumping.");
|
getDebugLogger().info("Skipping resource dumping.");
|
||||||
}
|
}
|
||||||
|
|
||||||
config.load(this); // load config.yml
|
|
||||||
|
|
||||||
LangUtil.load(config.getLanguage(), this); // load language
|
|
||||||
|
|
||||||
debugLogger.value().setDebug(config.isDebugLogging()); // enable debug logger if applicable
|
debugLogger.value().setDebug(config.isDebugLogging()); // enable debug logger if applicable
|
||||||
|
|
||||||
if(config.isDebugProfiler()) { // if debug.profiler is enabled, start profiling
|
if(config.isDebugProfiler()) { // if debug.profiler is enabled, start profiling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user