From d6b1bc26d8445011a5dd3990b98e683c54f81a36 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 19 Jun 2020 05:36:52 -0400 Subject: [PATCH] Read target of Forward message properly. Fixes #318 --- .../proxy/connection/backend/BungeeCordMessageResponder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java index deb5b2304..35d3c3660 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java @@ -220,8 +220,8 @@ class BungeeCordMessageResponder { } private void processForwardToServer(ByteBufDataInput in) { - ByteBuf toForward = prepareForwardMessage(in); String target = in.readUTF(); + ByteBuf toForward = prepareForwardMessage(in); if (target.equals("ALL")) { ByteBuf unreleasableForward = Unpooled.unreleasableBuffer(toForward); try {