Skip to content

Commit

Permalink
Switch to ASCII characters for mod list tree formatting (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas authored Feb 24, 2023
1 parent 3b057b7 commit 48f6ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/fabricmc/loader/impl/FabricLoaderImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ private void dumpModList0(ModCandidate mod, StringBuilder log, int nestLevel, bo
if (log.length() > 0) log.append('\n');

for (int depth = 0; depth < nestLevel; depth++) {
log.append(depth == 0 ? "\t" : lastItemOfNestLevel[depth] ? " " : " ");
log.append(depth == 0 ? "\t" : lastItemOfNestLevel[depth] ? " " : " | ");
}

log.append(nestLevel == 0 ? "\t" : " ");
log.append(nestLevel == 0 ? "" : lastItemOfNestLevel[nestLevel] ? "└──" : "├──");
log.append(nestLevel == 0 ? "\t" : " ");
log.append(nestLevel == 0 ? "-" : lastItemOfNestLevel[nestLevel] ? " \\--" : " |--");
log.append(' ');
log.append(mod.getId());
log.append(' ');
Expand Down

0 comments on commit 48f6ce7

Please sign in to comment.