Rewrite hopper minecart fix

Just force close player inventory before leave