delay log if not loaded yet

This commit is contained in:
Gurge44 committed 2026-07-01 12:16:37 +02:00
1 parent 9e9596ce40
commit 02ca62b7e3
2 files changed
+8 -3

No files matched your search

+6
View File
@@ -103,6 +103,12 @@ internal static class Logger
if (level == LogLevel.Message) NowDetailedErrorLog.Clear();
}
if (!Main.Loaded)
{
LateTask.New(() => CustomLogger.Instance.Log(level.ToString(), LogText, multiLine), 1f, "Log Retry");
return;
}
CustomLogger.Instance.Log(level.ToString(), LogText, multiLine);
}