Fixes parent references. (#15)
This commit is contained in:
parent
01d0fb75b8
commit
90ffe0ea3c
20 changed files with 55 additions and 93 deletions
|
|
@ -66,9 +66,7 @@ namespace Server.Misc
|
|||
}
|
||||
else if (item.Layer == Layer.Hair || item.Layer == Layer.FacialHair)
|
||||
{
|
||||
object rootParent = item.RootParent;
|
||||
|
||||
if (rootParent is Mobile rootMobile)
|
||||
if (item.RootParent is Mobile rootMobile)
|
||||
{
|
||||
if (item.Parent != rootMobile && rootMobile.AccessLevel == AccessLevel.Player)
|
||||
{
|
||||
|
|
@ -164,4 +162,4 @@ namespace Server.Misc
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue