File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,12 +32,15 @@ public void Delete()
3232 Context . Respond ( $ "Deleted { count } grids matching the given conditions.") ;
3333 }
3434
35- private IEnumerable < MyCubeGrid > ScanConditions ( List < string > args )
35+ private IEnumerable < MyCubeGrid > ScanConditions ( IReadOnlyList < string > args )
3636 {
3737 var conditions = new List < Func < MyCubeGrid , bool > > ( ) ;
3838
3939 for ( var i = 0 ; i < args . Count ; i += 2 )
4040 {
41+ if ( i + 1 > args . Count )
42+ break ;
43+
4144 var arg = args [ i ] ;
4245 var parameter = args [ i + 1 ] ;
4346
Original file line number Diff line number Diff line change 135135 <Compile Include =" AutoCommand.cs" />
136136 <Compile Include =" Commands\BlocksModule.cs" />
137137 <Compile Include =" Commands\CleanupModule.cs" />
138- <Compile Include =" Commands\ScanModule.cs" />
139138 <Compile Include =" Commands\VoxelModule.cs" />
140139 <Compile Include =" Commands\WorldModule.cs" />
141140 <Compile Include =" EssentialsConfig.cs" />
142- <Compile Include =" Commands\DeleteModule.cs" />
143141 <Compile Include =" Commands\EntityModule.cs" />
144142 <Compile Include =" EssentialsControl.xaml.cs" >
145143 <DependentUpon >EssentialsControl.xaml</DependentUpon >
You can’t perform that action at this time.
0 commit comments