Skip to content

Commit

Permalink
deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 13, 2024
1 parent 6fce80a commit 73c1b43
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import java.util.Objects;

import static org.cubewhy.celestial.Celestial.config;
import static org.cubewhy.celestial.Celestial.f;
import static org.cubewhy.celestial.gui.GuiLauncher.statusBar;

@Getter
@Slf4j
Expand Down Expand Up @@ -57,6 +59,7 @@ public static List<LunarCNMod> findAll() {

public static boolean checkUpdate() throws MalformedURLException {
log.info("Updating LunarCN Loader...");
statusBar.setText(f.getString("gui.addon.mods.cn.warn"));
return AddonUtils.downloadLoader("CubeWhyMC/LunarClient-CN", new File(config.getValue("addon").getAsJsonObject().getAsJsonObject("lunarcn").get("installation").getAsString()));
}
}
3 changes: 2 additions & 1 deletion src/main/resources/languages/launcher.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,5 @@ gui.settings.launcher.theme=Theme:
gui.settings.warn.restart=Tip: Some settings require restarting the launcher to take effect
gui.settings.launcher.language=Language/语言:
gui.settings.launcher.max-threads=Downloader maximum thread:
gui.settings.launcher.api=API (only supports LunarCN):
gui.settings.launcher.api=API (only supports LunarCN):
gui.addon.mods.cn.warn=Warning: LunarCN loader has been deprecated, it is recommended that you migrate to Weave
3 changes: 2 additions & 1 deletion src/main/resources/languages/launcher_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,5 @@ gui.settings.launcher.theme=Theme:
gui.settings.warn.restart=Tip: Some settings require restarting the launcher to take effect
gui.settings.launcher.language=Language/语言:
gui.settings.launcher.max-threads=Downloader maximum thread:
gui.settings.launcher.api=API (only supports LunarCN):
gui.settings.launcher.api=API (only supports LunarCN):
gui.addon.mods.cn.warn=Warning: LunarCN loader has been deprecated, it is recommended that you migrate to Weave
3 changes: 2 additions & 1 deletion src/main/resources/languages/launcher_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,5 @@ gui.settings.launcher.theme=主题:
gui.settings.warn.restart=提示:部分设置需要重启启动器才能生效
gui.settings.launcher.language=语言/Language:
gui.settings.launcher.max-threads=下载器最大线程:
gui.settings.launcher.api=接口(仅支持LunarCN):
gui.settings.launcher.api=接口(仅支持LunarCN):
gui.addon.mods.cn.warn=警告: LunarCN 加载器已经被弃用,建议您迁移到Weave

0 comments on commit 73c1b43

Please sign in to comment.