chop fixed, staff placements were not getting added to h.Addons
This commit is contained in:
parent
31167c984f
commit
d0faf02150
2 changed files with 3 additions and 9 deletions
|
|
@ -167,12 +167,9 @@ namespace Server.Items
|
|||
|
||||
public static bool CheckHouse( Mobile from, Point3D p, Map map, int height, ref List<BaseHouse> list )
|
||||
{
|
||||
if ( from == null || from.AccessLevel >= AccessLevel.GameMaster )
|
||||
return true;
|
||||
|
||||
BaseHouse house = BaseHouse.FindHouseAt( p, map, height );
|
||||
|
||||
if ( house == null || !house.IsOwner( from ) )
|
||||
if ( from == null || house == null || !house.IsOwner( from ) )
|
||||
return false;
|
||||
|
||||
if ( !list.Contains( house ) )
|
||||
|
|
|
|||
|
|
@ -94,11 +94,8 @@ namespace Server.Items
|
|||
{
|
||||
m_Deed.Delete();
|
||||
|
||||
if ( houses != null )
|
||||
{
|
||||
foreach ( BaseHouse h in houses )
|
||||
h.Addons.Add( addon );
|
||||
}
|
||||
foreach ( BaseHouse h in houses )
|
||||
h.Addons.Add( addon );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue