// rider.mountEntity(null);
rider.ridingEntity = null;
cart.riddenByEntity = null;
if (rider instanceof EntityPlayerMP) {
EntityPlayerMP player = ((EntityPlayerMP) rider);
player.playerNetServerHandler.sendPacket(new S1BPacketEntityAttach(0, rider, null));
player.setPositionAndUpdate(x + 0.5, getY() + 1, z + 0.5);
} else
rider.setLocationAndAngles(x + 0.5, getY() + 1, z + 0.5, rider.rotationYaw, rider.rotationPitch);
cart.getEntityData().setInteger("MountPrevention", TIME_TILL_NEXT_MOUNT);
}