Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions EssentialsPlugin/Utility/CubeGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -628,18 +628,12 @@ public static HashSet<IMyEntity> ScanGrids( ulong userId, string line )
return new HashSet<IMyEntity>( );
}

if ( words.Length - 3 > options.Count )
{
if ( ApplicationLog.BaseLog.IsDebugEnabled )
{
ApplicationLog.BaseLog.Debug( "Essentials: Arguments: {0}", string.Join( " ", words ) );
ApplicationLog.BaseLog.Debug( "Essentials: Options: {0}", string.Join( ",", options.Keys ) );
}
Communication.SendPrivateInformation( userId, "Possible problem with your parameters (options provided is larger than options found). Not returning any results in case of error" );

return new HashSet<IMyEntity>( );
}

if (ApplicationLog.BaseLog.IsDebugEnabled)
{
ApplicationLog.BaseLog.Debug("Essentials: Arguments: {0}", string.Join(" ", words));
ApplicationLog.BaseLog.Debug("Essentials: Options: {0}", string.Join(",", options.Keys));
}

if ( !scanOptions.Quiet )
Communication.SendPrivateInformation( userId, string.Format( "Scanning for ships with options: {0}", GetOptionsText( options ) ) );

Expand Down