ClientState was set twice

This commit is contained in:
Raymond 2021-08-22 07:57:41 -04:00
parent 4ee9db025a
commit 797bcade90

View file

@ -143,7 +143,7 @@ namespace Dalamud
Service<NetworkHandlers>.Set();
Log.Information("[T2] NH OK!");
Service<ClientState>.Set();
var clientState = Service<ClientState>.Set();
Log.Information("[T2] CS OK!");
var localization = Service<Localization>.Set(new Localization(Path.Combine(this.AssetDirectory.FullName, "UIRes", "loc", "dalamud"), "dalamud_"));
@ -210,7 +210,7 @@ namespace Dalamud
Log.Information("[T2] CH OK!");
Service<ClientState>.Set().Enable();
clientState.Enable();
Log.Information("[T2] CS ENABLE!");
Service<DalamudSystemMenu>.Set().Enable();