Skip to content

Commit

Permalink
fix command not working
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAdam committed Dec 28, 2020
1 parent 3189989 commit fbbd8a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Penumbra/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ public void Dispose()
private void OnCommand( string command, string rawArgs )
{
var args = rawArgs.Split( ' ' );
if( args.Length > 0 )
if( args.Length > 0 && args[ 0 ].Length > 0 )
{
switch( args[ 0 ] )
{
case "reload":
{
ModManager.DiscoverMods();
PluginInterface.Framework.Gui.Chat.Print(
PluginInterface.Framework.Gui.Chat.Print(
$"Reloaded Penumbra mods. You have {ModManager.Mods.ModSettings.Count} mods, {ModManager.Mods.EnabledMods.Length} of which are enabled."
);
break;
Expand Down

0 comments on commit fbbd8a2

Please sign in to comment.