Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Pushed OrionLauncher module to the point of compiling #15

Merged

Conversation

Crypnotic
Copy link

I'm not sure where progress lies with #14, but I've rewrote the bits of the launcher module that needed to be fixed after removing OkHttp and Shuriken. Downloading should work just fine, but I haven't had the time to test since it was a copy/paste from another project I am working on.

I hope this helps to get the project moving forward again :)

@mikroskeem
Copy link
Collaborator

Will look into this PR today.

@@ -27,8 +27,10 @@

import org.checkerframework.checker.nullness.qual.NonNull;

import java.io.IOException;
import javax.net.ssl.HttpsURLConnection;
import java.io.*;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No star imports please

if(response.code() != 200)

try {
HttpsURLConnection connection =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use HttpURLConnection instead.

HttpsURLConnection connection =
(HttpsURLConnection) paperclipDownloadUrl.openConnection();

connection.addRequestProperty("user-agent", "OrionMinecraft");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: User-Agent

@Crypnotic
Copy link
Author

Requested changes made

Copy link
Collaborator

@mikroskeem mikroskeem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for now.

@mikroskeem mikroskeem merged commit 50c8273 into OrionMinecraft:feature/overhaul Aug 17, 2020
@mikroskeem
Copy link
Collaborator

Regarding the progress, readme has Discord link where we can discuss about ideas.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants