Merge pull request #1030 from creeper123123321/master

Fix PacketWrapper#constructPacket
This commit is contained in:
Myles 2018-09-24 08:44:14 +01:00 committed by GitHub
commit 0255f3c42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,7 +330,7 @@ public class PacketWrapper {
resetReader();
// Apply other protocols
apply(Direction.OUTGOING, user().get(ProtocolInfo.class).getState(), index, protocols);
apply(direction, user().get(ProtocolInfo.class).getState(), index, protocols);
// Send
ByteBuf output = inputBuffer == null ? user().getChannel().alloc().buffer() : inputBuffer.alloc().buffer();
writeToBuffer(output);