3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Fixed encoding not properly working with other packet reading libraries

Injecting a message to byte encoder beforehand would break outbound packets in ViaVersion. This solution is a good fix which won't impact anything.
Dieser Commit ist enthalten in:
Thibaut Gautier 2021-01-17 13:12:18 +01:00
Ursprung c0fb81946e
Commit 91319402f3

Datei anzeigen

@ -54,8 +54,10 @@ public class BukkitEncodeHandler extends MessageToByteEncoder implements ViaHand
throw (Error) e.getCause(); throw (Error) e.getCause();
} }
} }
}
} else {
bytebuf.clear().writeBytes((ByteBuf) o);
}
transform(bytebuf); transform(bytebuf);
} }