fixed logger issues #156 and #155

This commit is contained in:
gnembon committed 2020-02-23 02:25:51 -04:00
1 parent 56d681560a
commit 72a7bed11a
9 files changed
+95 -29

No files matched your search

+6 -1
View File
@@ -41,7 +41,6 @@ public class CarpetServer // static for now - easier to handle all around the co
public static void onGameStarted()
{
LoggerRegistry.initLoggers();
settingsManager = new SettingsManager(CarpetSettings.carpetVersion, "carpet", "Carpet Mod");
settingsManager.parseSettingsClass(CarpetSettings.class);
extensions.forEach(CarpetExtension::onGameStarted);
@@ -59,6 +58,7 @@ public class CarpetServer // static for now - easier to handle all around the co
scriptServer = new CarpetScriptServer();
scriptServer.loadAllWorldScripts();
MobAI.resetTrackers();
LoggerRegistry.initLoggers();
}
public static void tick(MinecraftServer server)
@@ -117,5 +117,10 @@ public class CarpetServer // static for now - easier to handle all around the co
LoggerRegistry.stopLoggers();
extensions.forEach(e -> e.onServerClosed(server));
}
public static void registerExtensionLoggers()
{
extensions.forEach(CarpetExtension::registerLoggers);
}
}