Fixed gamebreaking crash for mining chore
Lots of work on the API