There was pot and pills found with the black power gun.
Your question raises a very interesting issue that may, or may not, have been addressed by our appellate courts. The answer to that is beyond the scope of my current commitment. You would be well advised to consult with your attorney, or if you have none at this point, hire one immediately. The gun mandatory for drugs found at 42 Pa.C.S.A. § 9712.1 states that the five your mandatory minimum with apply if there is a "firearm" with the necessary nexus to the crime. The word "firearm" is defined later in that section as having "the same meaning as that given to it in section 9712 (relating to sentences for offenses committed with firearms). Section 9712 contains language that it is applicable when a defined crime of violence is committed and a "firearm" or a "replica of a firearm" has the required nexus to the crime. "Replica of a firearm" is specifically defined in section 9712 to be "an item that can reasonably be perceived to be a firearm." The absence of the inclusion of "replica" language in the drug/firearm mandatory may be very important to the answer to your question. Find out what your attorney has to say.
If you are facing a felony drug charge involving intent to deliver or manufacture and possesed a firearm, upon conviction you would be facing a mandatory sentence. You need an experienced criminal defense attorney to explore all defenses and the weapon you describe may not be one of them.