Fix recharger capacity-checking

Tested and works.
reformat if statement
Merge pull request #5428 from KA101/recharger-fix

[Ready] Fix recharger capacity-checking