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!
This and the two lines above can be simplified to `else if`, and the `else` below just needs to be unindented one level.