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!
You should remove the padding around the condition in this and all the other cases where you added it.