Fix load exception

This commit is contained in:
Infi
2024-08-28 18:22:44 +02:00
parent f6531907a4
commit bf446c5511
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ internal sealed unsafe class Chat : IDisposable
ChangeChannelNameDetour(agent); ChangeChannelNameDetour(agent);
// Inform all clients that a new login happend // Inform all clients that a new login happened
Plugin.ServerCore.SendNewLogin(); Plugin.ServerCore.SendNewLogin();
} }
+3 -3
View File
@@ -81,6 +81,9 @@ public sealed class Plugin : IDalamudPlugin
LanguageChanged(Interface.UiLanguage); LanguageChanged(Interface.UiLanguage);
ImGuiUtil.Initialize(this); ImGuiUtil.Initialize(this);
// Functions calls this in its ctor if the player is already logged in
ServerCore = new ServerCore(this);
Commands = new Commands(this); Commands = new Commands(this);
Common = new ChatCommon(); Common = new ChatCommon();
Functions = new GameFunctions.GameFunctions(this); Functions = new GameFunctions.GameFunctions(this);
@@ -88,9 +91,6 @@ public sealed class Plugin : IDalamudPlugin
ExtraChat = new ExtraChat(this); ExtraChat = new ExtraChat(this);
FontManager = new FontManager(); FontManager = new FontManager();
// ChatLog calls this in its ctor if the player is already logged in
ServerCore = new ServerCore(this);
ChatLogWindow = new ChatLogWindow(this); ChatLogWindow = new ChatLogWindow(this);
SettingsWindow = new SettingsWindow(this); SettingsWindow = new SettingsWindow(this);
DbViewer = new DbViewer(this); DbViewer = new DbViewer(this);