We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 644faf3 commit d7a6453Copy full SHA for d7a6453
src/main/java/org/mcphackers/mcp/tools/VersionsParser.java
@@ -69,7 +69,10 @@ private static JSONObject getJson() {
69
JSONObject jsonSource = Util.parseJSONFile(jsonPath);
70
if(jsonSource.has("source")) {
71
String src = jsonSource.getString("source");
72
- if(!src.startsWith("http")) {
+ if(!src.endsWith("/") && !src.endsWith("\\")) {
73
+ src += "/";
74
+ }
75
+ if(!src.startsWith("https:") && !src.startsWith("http:") && !src.startsWith("file:")) {
76
src = "file:" + src;
77
}
78
versionsURL = src;
0 commit comments