Merges bug fixes and cleanup with master (#17)
This commit is contained in:
parent
39dfe86e10
commit
55136d8842
33 changed files with 157 additions and 234 deletions
|
|
@ -47,15 +47,12 @@ namespace Server.Items
|
|||
|
||||
public bool Validate()
|
||||
{
|
||||
object root = RootParent;
|
||||
if (!(RootParent is Mobile mobile) || mobile.AccessLevel >= AccessLevel)
|
||||
return true;
|
||||
|
||||
if (root is Mobile mobile && mobile.AccessLevel < AccessLevel)
|
||||
{
|
||||
Delete();
|
||||
return false;
|
||||
}
|
||||
Delete();
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
|
|
@ -83,4 +80,4 @@ namespace Server.Items
|
|||
return from.AccessLevel >= AccessLevel;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue