3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-24 23:30:26 +01:00

Fix the debug message

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-11-24 12:09:49 -05:00
Ursprung aa7aee9dd7
Commit fa2655d49b

Datei anzeigen

@ -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);
}
}