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
|
|
@ -137,8 +137,28 @@ namespace Server.Multis
|
|||
Fixtures.Add(item);
|
||||
}
|
||||
|
||||
public override bool IsInside(Point3D p, int height) =>
|
||||
base.IsInside(p, height) || Fixtures?.OfType<HouseTeleporter>().Any(fix => fix.Location == p) == true;
|
||||
public override bool IsInside(Point3D p, int height)
|
||||
{
|
||||
if (base.IsInside(p, height))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Fixtures == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (Item fixture in Fixtures)
|
||||
{
|
||||
if (fixture is HouseTeleporter fix && fix.Location == p)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual void AutoAddFixtures()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue