From bf446c551128d1c64cde21143d9f7dff61a1603a Mon Sep 17 00:00:00 2001 From: Infi Date: Wed, 28 Aug 2024 18:22:44 +0200 Subject: [PATCH] Fix load exception --- ChatTwo/GameFunctions/Chat.cs | 2 +- ChatTwo/Plugin.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChatTwo/GameFunctions/Chat.cs b/ChatTwo/GameFunctions/Chat.cs index 3420dc8..6122047 100755 --- a/ChatTwo/GameFunctions/Chat.cs +++ b/ChatTwo/GameFunctions/Chat.cs @@ -165,7 +165,7 @@ internal sealed unsafe class Chat : IDisposable ChangeChannelNameDetour(agent); - // Inform all clients that a new login happend + // Inform all clients that a new login happened Plugin.ServerCore.SendNewLogin(); } diff --git a/ChatTwo/Plugin.cs b/ChatTwo/Plugin.cs index 31e7d3e..69ffc93 100755 --- a/ChatTwo/Plugin.cs +++ b/ChatTwo/Plugin.cs @@ -81,6 +81,9 @@ public sealed class Plugin : IDalamudPlugin LanguageChanged(Interface.UiLanguage); ImGuiUtil.Initialize(this); + // Functions calls this in its ctor if the player is already logged in + ServerCore = new ServerCore(this); + Commands = new Commands(this); Common = new ChatCommon(); Functions = new GameFunctions.GameFunctions(this); @@ -88,9 +91,6 @@ public sealed class Plugin : IDalamudPlugin ExtraChat = new ExtraChat(this); FontManager = new FontManager(); - // ChatLog calls this in its ctor if the player is already logged in - ServerCore = new ServerCore(this); - ChatLogWindow = new ChatLogWindow(this); SettingsWindow = new SettingsWindow(this); DbViewer = new DbViewer(this);