Minecart Derail resolved (Resolves #1588)

Let's add this to main shall we?
Please put brackets on new lines.