From 9a15c7e170ba12ed3acb71257365ff7d1c775443 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 24 Aug 2021 13:58:13 -0400 Subject: [PATCH] Fix Brigadier command node redirect serialization (#565) --- .../proxy/protocol/packet/AvailableCommands.java | 3 +++ 1 file changed, 3 insertions(+) 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 50424f5ee..39cfbdec3 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 @@ -121,6 +121,9 @@ public class AvailableCommands implements MinecraftPacket { if (!idMappings.containsKey(child)) { idMappings.put(child, idMappings.size()); childrenQueue.addAll(child.getChildren()); + if (child.getRedirect() != null) { + childrenQueue.add(child.getRedirect()); + } } }