Read target of Forward message properly. Fixes #318

This commit is contained in:
Andrew Steinborn 2020-06-19 05:36:52 -04:00
parent b79d2d4a94
commit d6b1bc26d8

View File

@ -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 {