Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -23,19 +23,33 @@ namespace Server.Commands.Generic
var ext = Extensions.Parse(from, ref args);
if (!CheckObjectTypes(from, command, ext, out var items, out var mobiles))
{
return;
}
var list = new List<object>();
if (items)
{
foreach (var item in World.Items.Values)
{
if (ext.IsValid(item))
{
list.Add(item);
}
}
}
if (mobiles)
{
foreach (var mob in World.Mobiles.Values)
{
if (ext.IsValid(mob))
{
list.Add(mob);
}
}
}
ext.Filter(list);