Implement ability to push minecarts on curved rails

This is my first real code contribution to an open source project. I'm grateful for any advice!
I don't like this style of comments, between the `if` statement and the actual code block. Move the comment inside the braces; since there already is a comment, merge the two.