final fix for hopper minecarts. Originally written by Deadlock989