mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix error in log about existing command.
This commit is contained in:
parent
fb591429d6
commit
5fefdfa33b
1 changed files with 2 additions and 1 deletions
|
|
@ -47,7 +47,8 @@ public class CommandHandler : IDisposable
|
|||
_collectionEditor = collectionEditor;
|
||||
framework.RunOnFrameworkThread(() =>
|
||||
{
|
||||
_commandManager.RemoveHandler(CommandName);
|
||||
if (_commandManager.Commands.ContainsKey(CommandName))
|
||||
_commandManager.RemoveHandler(CommandName);
|
||||
_commandManager.AddHandler(CommandName, new CommandInfo(OnCommand)
|
||||
{
|
||||
HelpMessage = "Without arguments, toggles the main window. Use /penumbra help to get further command help.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue