Skip to content

Commit af0d6ff

Browse files
author
IMS212
committed
new meta
1 parent ccbf782 commit af0d6ff

2 files changed

Lines changed: 2 additions & 27 deletions

File tree

src/main/java/net/hypercubemc/iris_installer/InstallerMeta.java

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,31 +42,7 @@ public static String readAll(Reader reader) throws IOException {
4242
while ((codePoint = reader.read()) != -1) {
4343
stringBuilder.append((char) codePoint);
4444
}
45-
return "{\n" +
46-
" \"hasBeta\": true,\n" +
47-
" \"versions\": [\n" +
48-
" {\n" +
49-
" \"name\": \"1.16.5\",\n" +
50-
" \"outdated\": false\n" +
51-
" },\n" +
52-
" {\n" +
53-
" \"name\": \"1.17.1\",\n" +
54-
" \"outdated\": false\n" +
55-
" },\n" +
56-
" {\n" +
57-
" \"name\": \"1.18.2\",\n" +
58-
" \"outdated\": false\n" +
59-
" },\n" +
60-
" {\n" +
61-
" \"name\": \"1.19\",\n" +
62-
" \"outdated\": true\n" +
63-
" },\n" +
64-
" {\n" +
65-
" \"name\": \"1.19.1\",\n" +
66-
" \"outdated\": false\n" +
67-
" }\n" +
68-
" ]\n" +
69-
"}";
45+
return stringBuilder.toString();
7046
}
7147

7248
public static JSONObject readJsonFromUrl(String url) throws IOException {
@@ -79,7 +55,6 @@ public static class Version {
7955
String name;
8056

8157
public Version(HashMap<String, Object> jsonObject) {
82-
System.out.println(jsonObject.toString());
8358
this.name = (String) jsonObject.get("name");
8459
this.outdated = (boolean) jsonObject.get("outdated");
8560
}

src/main/java/net/hypercubemc/iris_installer/NewInstaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public NewInstaller() {
7272
throw new RuntimeException(e);
7373
}
7474

75-
INSTALLER_META = new InstallerMeta(BASE_URL + "meta.json");
75+
INSTALLER_META = new InstallerMeta(BASE_URL + "meta-new.json");
7676
try {
7777
INSTALLER_META.load();
7878
} catch (IOException e) {

0 commit comments

Comments
 (0)