diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/debug/Debug.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/debug/Debug.java index cf7687dc9..50a05c309 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/debug/Debug.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/debug/Debug.java @@ -106,7 +106,7 @@ public final class Debug { while ((i = msg.indexOf('{', i)) != -1 && msg.charAt(i + 1) == '}') { // Substring up to the opening brace `{`, add the variable for this and add the rest of the message msg = msg.substring(0, i) + vars[idx] + msg.substring(i + 2); - i += ("" + vars[idx++]).length(); + i += String.valueOf(vars[idx++]).length(); } return msg;