Skip to content

Commit 2225f0f

Browse files
committed
Fix issues with restoring to saved indents
1 parent b52daef commit 2225f0f

File tree

1 file changed

+3
-3
lines changed
  • log-utils/src/main/java/net/minecraftforge/util/logging

1 file changed

+3
-3
lines changed

log-utils/src/main/java/net/minecraftforge/util/logging/Log.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ private static PrintStream streamOf(Level level, PrintStream delegate) {
5858
private static byte indent = 0;
5959

6060
/** Pushes the current indentation level up by one. */
61-
public static int push() {
62-
return ++indent;
61+
public static byte push() {
62+
return indent++;
6363
}
6464

6565
/**
@@ -72,7 +72,7 @@ public static void pop() {
7272
throw new IllegalStateException("Cannot pop logger below 0");
7373
}
7474

75-
public static void setIndent(byte indent) {
75+
public static void pop(byte indent) {
7676
if (indent < 0)
7777
throw new IllegalStateException("Cannot pop logger below 0");
7878

0 commit comments

Comments
 (0)