Skip to content

Commit

Permalink
fix rename
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 23, 2024
1 parent ecdf63a commit 84ffa49
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
12 changes: 12 additions & 0 deletions .idea/discord.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 6 additions & 16 deletions README_zh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Celestial
[English](./README.md)

> 一个第三方的lunarclient启动器
> Celestial是一个高性能的LunarClient启动其
## 特性

Expand All @@ -21,22 +21,12 @@
## 获取Celestial
### Release
[releases](https://github.com/cubewhy/celestial/releases)下载
### 自行构建
1. 克隆仓库
```shell
git clone https://github.com/CubeWhyMC/celestial.git celestial
cd ./celestial
```
2. 设置gradle
```shell
./gradlew clean
```
3. Build
```shell
./gradlew build
```
在build/libs目录里寻找构建结果

### Actions

> actions版本可能无法运行,或者有很多问题,遇到问题请理性反馈
[Actions](https://github.com/cubewhy/celestial/actions)获取


## 捐赠
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ public static String findAgentArg(String name) {
*/
public static void migrate(String old, String n3w) {
JsonObject ja = config.getValue("javaagents").getAsJsonObject();
String arg = ja.get(old).getAsString();
String arg;
if (ja.get(old) == null) {
arg = null;
} else {
arg = ja.get(old).getAsString();
}
ja.addProperty(n3w, arg); // leave empty
ja.remove(old);
config.setValue("javaagents", ja); // dump
Expand Down

0 comments on commit 84ffa49

Please sign in to comment.