added check for onlyDestroyUpwards() to getTreeHeight() to prevent cheating around the break speed when onlyDestroyUpwards = true