File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
log-utils/src/main/java/net/minecraftforge/util/logging Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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 void push () {
62- indent ++ ;
61+ public static int push () {
62+ return ++ indent ;
6363 }
6464
6565 /**
@@ -72,6 +72,13 @@ public static void pop() {
7272 throw new IllegalStateException ("Cannot pop logger below 0" );
7373 }
7474
75+ public static void setIndent (byte indent ) {
76+ if (indent < 0 )
77+ throw new IllegalStateException ("Cannot pop logger below 0" );
78+
79+ Log .indent = indent ;
80+ }
81+
7582 static String getIndentation () {
7683 if (indent == 0 ) return "" ;
7784
You can’t perform that action at this time.
0 commit comments