Fixes parent references. (#15)
This commit is contained in:
parent
01d0fb75b8
commit
90ffe0ea3c
20 changed files with 55 additions and 93 deletions
|
|
@ -142,7 +142,7 @@ namespace Server.Engines.BulkOrders
|
|||
}
|
||||
}
|
||||
|
||||
public void InvalidateContainers( object parent )
|
||||
public void InvalidateContainers(IEntity parent)
|
||||
{
|
||||
if ( parent is Container c )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
public Mobile Thrower{ get; private set; }
|
||||
|
||||
private Mobile FindOwner(object parent)
|
||||
private Mobile FindOwner(IEntity parent)
|
||||
{
|
||||
if (parent is Item item)
|
||||
return item.RootParent as Mobile;
|
||||
|
|
|
|||
|
|
@ -455,7 +455,7 @@ namespace Server.Engines.ConPVP
|
|||
MoveToWorld(m_TeamInfo.Origin, m_TeamInfo.Game.Facet);
|
||||
}
|
||||
|
||||
private Mobile FindOwner(object parent)
|
||||
private Mobile FindOwner(IEntity parent)
|
||||
{
|
||||
if (parent is Item item)
|
||||
return item.RootParent as Mobile;
|
||||
|
|
@ -1199,4 +1199,4 @@ namespace Server.Engines.ConPVP
|
|||
m_FinishTimer = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ namespace Server.Factions
|
|||
return false;
|
||||
}
|
||||
|
||||
private Mobile FindOwner(object parent)
|
||||
private Mobile FindOwner(IEntity parent)
|
||||
{
|
||||
if (parent is Item item)
|
||||
return item.RootParent as Mobile;
|
||||
|
|
@ -453,4 +453,4 @@ namespace Server.Factions
|
|||
base.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue