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:
parent
7762d94336
commit
580da8a0cc
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue