From fa2655d49b0bb27c930641657ee6f489010ee357 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 24 Nov 2020 12:09:49 -0500 Subject: [PATCH] Fix the debug message --- .../proxy/protocol/packet/AvailableCommands.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/AvailableCommands.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/AvailableCommands.java index dc5e86ff5..891115511 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/AvailableCommands.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/AvailableCommands.java @@ -221,13 +221,14 @@ public class AvailableCommands implements MinecraftPacket { // that needs to come after this node is built. for (int child : children) { if (child < 0 || child >= wireNodes.length) { - throw new IllegalStateException("Node points to non-existent index " + redirectTo); + throw new IllegalStateException("Node points to non-existent index " + child); } } if (redirectTo != -1) { if (redirectTo < 0 || redirectTo >= wireNodes.length) { - throw new IllegalStateException("Node points to non-existent index " + redirectTo); + throw new IllegalStateException("Redirect node points to non-existent index " + + redirectTo); } }