Example #1
0
    public void UpdateParent(Item item)
    {
        BaseEntity entityForParenting = this.GetEntityForParenting(item);

        if (Object.op_Equality((Object)entityForParenting, (Object)null) || !entityForParenting.isServer || !entityForParenting.IsFullySpawned())
        {
            return;
        }
        PagerEntity pagerEnt = this.GetPagerEnt(item, true);

        if (!Object.op_Implicit((Object)pagerEnt))
        {
            return;
        }
        pagerEnt.SetParent(entityForParenting, false, true);
    }
    public void UpdateParent(Item item)
    {
        BaseEntity entityForParenting = this.GetEntityForParenting(item);

        if (entityForParenting == null)
        {
            return;
        }
        if (!entityForParenting.isServer)
        {
            return;
        }
        if (!entityForParenting.IsFullySpawned())
        {
            return;
        }
        PagerEntity pagerEnt = this.GetPagerEnt(item, true);

        if (pagerEnt)
        {
            pagerEnt.SetParent(entityForParenting, false, true);
        }
    }