Fix bug where no XP was granted when Flux Mining

Fixes #2359