fix(skin): littleskin domain changed. Closes #1484.
This commit is contained in:
@@ -186,7 +186,7 @@ public class OfflineAccountSkinPane extends StackPane {
|
|||||||
});
|
});
|
||||||
|
|
||||||
JFXHyperlink littleSkinLink = new JFXHyperlink(i18n("account.skin.type.little_skin"));
|
JFXHyperlink littleSkinLink = new JFXHyperlink(i18n("account.skin.type.little_skin"));
|
||||||
littleSkinLink.setOnAction(e -> FXUtils.openLink("https://mcskin.littleservice.cn/"));
|
littleSkinLink.setOnAction(e -> FXUtils.openLink("https://littleskin.cn/"));
|
||||||
JFXButton cancelButton = new JFXButton(i18n("button.cancel"));
|
JFXButton cancelButton = new JFXButton(i18n("button.cancel"));
|
||||||
cancelButton.getStyleClass().add("dialog-cancel");
|
cancelButton.getStyleClass().add("dialog-cancel");
|
||||||
cancelButton.setOnAction(e -> fireEvent(new DialogCloseEvent()));
|
cancelButton.setOnAction(e -> fireEvent(new DialogCloseEvent()));
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ public class Skin {
|
|||||||
});
|
});
|
||||||
case LITTLE_SKIN:
|
case LITTLE_SKIN:
|
||||||
case CUSTOM_SKIN_LOADER_API:
|
case CUSTOM_SKIN_LOADER_API:
|
||||||
String realCslApi = type == Type.LITTLE_SKIN ? "http://mcskin.littleservice.cn" : StringUtils.removeSuffix(cslApi, "/");
|
String realCslApi = type == Type.LITTLE_SKIN ? "https://littleskin.cn" : StringUtils.removeSuffix(cslApi, "/");
|
||||||
return Task.composeAsync(() -> new GetTask(new URL(String.format("%s/%s.json", realCslApi, username))))
|
return Task.composeAsync(() -> new GetTask(new URL(String.format("%s/%s.json", realCslApi, username))))
|
||||||
.thenComposeAsync(json -> {
|
.thenComposeAsync(json -> {
|
||||||
SkinJson result = JsonUtils.GSON.fromJson(json, SkinJson.class);
|
SkinJson result = JsonUtils.GSON.fromJson(json, SkinJson.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user