File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/com/github/balloonupdate/mcpatch/client Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1818import java .nio .file .Path ;
1919import java .nio .file .attribute .FileTime ;
2020import java .util .ArrayList ;
21+ import java .util .Collections ;
2122import java .util .List ;
2223import java .util .Optional ;
2324import java .util .concurrent .TimeUnit ;
@@ -601,9 +602,11 @@ boolean run2(Servers server) throws IOException, McpatchBusinessException {
601602 // 2.生成更新记录
602603 String changelogs = "" ;
603604
605+ Collections .reverse (versionMetas );
604606 for (TempVersionMeta meta : versionMetas ) {
605- changelogs += String .format ("++++++++++ %s ++++++++++ \n %s\n \n " , meta .metadata .label , meta .metadata .logs );
607+ changelogs += String .format ("---------- %s ---------- \n %s\n \n " , meta .metadata .label , meta .metadata .logs );
606608 }
609+ Collections .reverse (versionMetas );
607610
608611 Log .info ("更新成功: \n " + changelogs .trim ());
609612
You can’t perform that action at this time.
0 commit comments