fixed infinite recursion bug when digging
Merge branch 'master' into 2.0. Applying latest bugfix to 2.0