From f3039a6cefef271bf9542adce4f1346211058106 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 17 Jun 2021 14:08:58 -0400 Subject: [PATCH] fix: only start drawing ui after tools have been added --- RoleplayersToolbox/Plugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RoleplayersToolbox/Plugin.cs b/RoleplayersToolbox/Plugin.cs index 528d8a8..2875a86 100755 --- a/RoleplayersToolbox/Plugin.cs +++ b/RoleplayersToolbox/Plugin.cs @@ -32,8 +32,6 @@ namespace RoleplayersToolbox { this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration(); this.Common = new XivCommonBase(pluginInterface, Hooks.ContextMenu | Hooks.PartyFinderListings); - this.Ui = new PluginUi(this); - this.Tools.Add(new HousingTool(this)); this.Tools.Add(new TargetingTool(this)); @@ -42,6 +40,8 @@ namespace RoleplayersToolbox { this.Tools.Add(new EmoteSnapTool(this)); #endif + this.Ui = new PluginUi(this); + this.Commands = new Commands(this); if (this.GameData == null) {