The Bug
Currently, the spear applies its weapon modifier for attack damage in both hands, meaning that if you were to, say, put a spear in your off hand, it would deal extra damage. This would not apply if the main hand weapon was a sword (as an example) most of the time since the modifiers conflict.
Steps to reproduce the issue
Step 1. Hold a netherite spear
Step 2. Swap it to the off-hand
Step 3. Attack an entity with your fist
Step 4. Notice it does 5 damage to the entity
Expected result
The fist should deal 1 damage in spite of the spear being in the off-hand
Actual result
The fist does 5 damage to the entity
Uhm, this might be because of the attribute swapping bug