69    {
   70        super.OnInventoryEnter(player);
   71        
   72        if (GetHierarchyParent() == player || (GetHierarchyParent() && GetHierarchyParent().GetInventory().GetCargo()))
   73        {
   74            if (HasEnergyManager())
   75            {
   77            
   78                if (poweredDevice)
   79                {
   81                    {
   82                        
   83                        if (poweredDevice.GetCompEM().IsPlugged())
   84                            poweredDevice.GetCompEM().UnplugDevice(poweredDevice.GetCompEM().GetPluggedDevice());
   85                    }
   86                    else
   87                    {
   88                        this.GetCompEM().UnplugAllDevices();
   89                    }
   90                }
   91            }
   92        }
   93    }
class GP5GasMask extends MaskBase ItemBase