Mining cause of deadly floods