From 25b65ce628ca759e0e5031659d132a7c4cd8c90f Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Sat, 19 Feb 2022 18:30:36 +0100 Subject: [PATCH] Fix redraw not working with names anymore. --- Penumbra/Penumbra.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Penumbra/Penumbra.cs b/Penumbra/Penumbra.cs index 2a6a04ff..6a7157b8 100644 --- a/Penumbra/Penumbra.cs +++ b/Penumbra/Penumbra.cs @@ -245,7 +245,7 @@ public class Penumbra : IDalamudPlugin const string modsEnabled = "Your mods have now been enabled."; const string modsDisabled = "Your mods have now been disabled."; - var args = rawArgs.Split( new[] { ' ' }, 3 ); + var args = rawArgs.Split( new[] { ' ' }, 2 ); if( args.Length > 0 && args[ 0 ].Length > 0 ) { switch( args[ 0 ] ) @@ -300,9 +300,13 @@ public class Penumbra : IDalamudPlugin } case "collection": { - if( args.Length == 3 ) + if( args.Length == 2 ) { - SetCollection( args[ 1 ], args[ 2 ] ); + args = args[ 1 ].Split( new[] { ' ' }, 2 ); + if( args.Length == 2 ) + { + SetCollection( args[ 0 ], args[ 1 ] ); + } } else {