diff --git a/EXILED/Exiled.API/Features/Pickups/FirearmPickup.cs b/EXILED/Exiled.API/Features/Pickups/FirearmPickup.cs index 3db97dac8..feb8d4c57 100644 --- a/EXILED/Exiled.API/Features/Pickups/FirearmPickup.cs +++ b/EXILED/Exiled.API/Features/Pickups/FirearmPickup.cs @@ -138,9 +138,12 @@ public override void Spawn() /// internal override void ReadItemInfo(Items.Item item) { - Items.Firearm firearm = (Items.Firearm)item; - MaxAmmo = firearm.PrimaryMagazine.ConstantMaxAmmo; - AmmoDrain = firearm.AmmoDrain; + if (item is Items.Firearm firearm) + { + MaxAmmo = firearm.PrimaryMagazine.ConstantMaxAmmo; + AmmoDrain = firearm.AmmoDrain; + } + base.ReadItemInfo(item); }