Fixed all mining bugs

Just attach this to a terrain for ores