Reverts a weird change that should never have happened (#255)

- [X] Reverts CheckHouse to fix an NPE in CouldFit

Bumps release
This commit is contained in:
Kamron Batman 2020-09-16 22:13:02 -07:00 committed by GitHub
parent 7762d94336
commit 580da8a0cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,8 +204,12 @@ namespace Server.Items
return AddonFitResult.Valid;
}
public static bool CheckHouse(Mobile from, Point3D p, Map map, int height, ref BaseHouse house) =>
from == null || BaseHouse.FindHouseAt(p, map, height)?.IsOwner(from) == true;
public static bool CheckHouse(Mobile from, Point3D p, Map map, int height, ref BaseHouse house)
{
house = BaseHouse.FindHouseAt(p, map, height);
return house != null && (from == null || house.IsOwner(from));
}
public static bool IsWall(int x, int y, int z, Map map)
{