fix(linq): Removes linq and fixes fishing error (#674)
This commit is contained in:
parent
b112be4e1f
commit
410b18ceca
19 changed files with 253 additions and 62 deletions
|
|
@ -116,10 +116,19 @@ namespace Server.Items
|
|||
private static bool FindMarkContainer(Point3D p, Map map)
|
||||
{
|
||||
var eable = map.GetItemsInRange<MarkContainer>(p, 0);
|
||||
var found = eable.Any(item => item.Z == p.Z);
|
||||
eable.Free();
|
||||
|
||||
return found;
|
||||
foreach (var item in eable)
|
||||
{
|
||||
if (item.Z == p.Z)
|
||||
{
|
||||
eable.Free();
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
return false;
|
||||
}
|
||||
|
||||
private static void CreateMalasPassage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue